[U-Boot] [PATCH v7 10/11] mmc: ftsdc010_mci: clk_get_rate() -> clock_get_rate()

Kuo-Jung Su dantesu at gmail.com
Mon Jul 29 07:51:52 CEST 2013


From: Kuo-Jung Su <dantesu at faraday-tech.com>

This updates ftsdc010_mci.c for latest Faraday clock APIs.

Signed-off-by: Kuo-Jung Su <dantesu at faraday-tech.com>
CC: Albert Aribaud <albert.u.boot at aribaud.net>
CC: Andy Fleming <afleming at gmail.com>
---
Changes for v6, v7:
   - Nothing updates

Changes for v5:
   - Initial commit

 drivers/mmc/ftsdc010_mci.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c
index 7600d5c..54976b0 100644
--- a/drivers/mmc/ftsdc010_mci.c
+++ b/drivers/mmc/ftsdc010_mci.c
@@ -366,7 +366,7 @@ int ftsdc010_mmc_init(int devid)
 #ifdef CONFIG_SYS_CLK_FREQ
 	chip->sclk = CONFIG_SYS_CLK_FREQ;
 #else
-	chip->sclk = clk_get_rate("SDC");
+	chip->sclk = clock_get_rate(MMC_CLK);
 #endif

 	mmc->voltages  = MMC_VDD_32_33 | MMC_VDD_33_34;
--
1.7.9.5



More information about the U-Boot mailing list