]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: exynos_dw_mmc: Read common clock-frequency property
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 8 Aug 2024 03:14:33 +0000 (22:14 -0500)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 19 Aug 2024 07:09:06 +0000 (16:09 +0900)
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@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/mmc/exynos_dw_mmc.c

index 612c2d0c615d9dd7f6ea9028c944d6d6ffdc1a97..bed8bd8a0fcf20192a1f40ac064a7dc62c304805 100644 (file)
@@ -306,7 +306,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;
 }