mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
mmc: msm_sdhci: Use max-frequency to get clock rate
msm_sdc_clk_init() uses clock-frequency to get the clock rate for SDC clocks. However, the DT files seem to use max-frequency for the same. Since msm_sdc_clk_init() doesn't find clock-frequency in the DT, it sets 201500000 as the clock rate and this results in timeout errors on IPQ platforms. Additionally, clock-frequency is not DT bindings compliant. Hence, get clock rate using DT bindings compliant max-frequency. Signed-off-by: Varadarajan Narayanan <varadarajan.narayanan@oss.qualcomm.com> Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
committed by
Peng Fan
parent
2a628fee83
commit
f07c15c16a
@@ -71,8 +71,7 @@ static int msm_sdc_clk_init(struct udevice *dev)
|
||||
|
||||
var_info = (void *)dev_get_driver_data(dev);
|
||||
|
||||
ret = ofnode_read_u32(node, "clock-frequency", (uint *)(&clk_rate));
|
||||
if (ret)
|
||||
if (ofnode_read_u32(node, "max-frequency", (uint *)(&clk_rate)))
|
||||
clk_rate = 201500000;
|
||||
|
||||
ret = clk_get_bulk(dev, &prv->clks);
|
||||
|
||||
Reference in New Issue
Block a user