[PATCH v2 28/40] mmc: exynos_dw_mmc: Read common clock-frequency property
Sam Protsenko
semen.protsenko at linaro.org
Mon Jun 10 03:12:14 CEST 2024
Instead of using non-standard "bus_hz" dts property, read common
"clock-frequency" property used in upstream Linux kernel. It's safe to
do so, as "clock-frequency" property was already added to corresponding
nodes in all affected Exynos device tree files.
No functional change.
Signed-off-by: Sam Protsenko <semen.protsenko at linaro.org>
---
drivers/mmc/exynos_dw_mmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c
index 01e6bbb123f1..5ecee403c416 100644
--- a/drivers/mmc/exynos_dw_mmc.c
+++ b/drivers/mmc/exynos_dw_mmc.c
@@ -307,7 +307,7 @@ static int exynos_dwmmc_of_to_plat(struct udevice *dev)
}
host->fifo_depth = dev_read_u32_default(dev, "fifo-depth", 0);
- host->bus_hz = dev_read_u32_default(dev, "bus_hz", 0);
+ host->bus_hz = dev_read_u32_default(dev, "clock-frequency", 0);
return 0;
}
--
2.39.2
More information about the U-Boot
mailing list