net: rfkill-wlan: enable default ext_clk for wifi module

Signed-off-by: Yao Xiao <xiaoyao@rock-chips.com>
Change-Id: I18b1fa7c8e68fc4d49810e26e4285d353989c33d
This commit is contained in:
Yao Xiao
2020-04-27 20:56:36 +08:00
committed by Tao Huang
parent 2d7c6370ea
commit 16d779106e

View File

@@ -614,16 +614,18 @@ static int wlan_platdata_parse_dt(struct device *dev,
ret = clk_set_rate(data->ext_clk, ext_clk_value);
if (ret)
LOG("%s: set ref clk error!\n", __func__);
ret = clk_prepare_enable(data->ext_clk);
if (ret)
LOG("%s: enable ref clk error!\n", __func__);
/* WIFI clock (REF_CLKOUT) output enable.
* 1'b0: drive disable
* 1'b1: output enable
*/
if (of_machine_is_compatible("rockchip,rk3308"))
regmap_write(data->grf, 0x0314, 0x00020002);
}
ret = clk_prepare_enable(data->ext_clk);
if (ret)
LOG("%s: enable ref clk error!\n", __func__);
/* WIFI clock (REF_CLKOUT) output enable.
* 1'b0: drive disable
* 1'b1: output enable
*/
if (of_machine_is_compatible("rockchip,rk3308"))
regmap_write(data->grf, 0x0314, 0x00020002);
}
return 0;