Patchwork [U-Boot,v5,13/14] mmc: ftsdc010_mci: clk_get_rate() -> clock_get_rate()

login
register
mail settings
Submitter Kuo-Jung Su
Date June 17, 2013, 12:07 p.m.
Message ID <1371470824-3228-14-git-send-email-dantesu@gmail.com>
Download mbox | patch
Permalink /patch/251832/
State Superseded
Delegated to: Albert ARIBAUD
Headers show

Comments

Kuo-Jung Su - June 17, 2013, 12:07 p.m.
From: Kuo-Jung Su <dantesu@faraday-tech.com>

This updates ftsdc010_mci.c for latest Faraday clock APIs.

Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
CC: Albert Aribaud <albert.u.boot@aribaud.net>
CC: Andy Fleming <afleming@gmail.com>
---
Changes for v5:
   - Initial commit

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

--
1.7.9.5
Andy Fleming - June 17, 2013, 6:32 p.m.
On Mon, Jun 17, 2013 at 7:07 AM, Kuo-Jung Su <dantesu@gmail.com> wrote:

> From: Kuo-Jung Su <dantesu@faraday-tech.com>
>
> This updates ftsdc010_mci.c for latest Faraday clock APIs.
>
> Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
> CC: Albert Aribaud <albert.u.boot@aribaud.net>
> CC: Andy Fleming <afleming@gmail.com>
>


Acked-by: Andy Fleming <afleming@freescale.com>

Since this is part of a series, it should go in with the rest of them,
rather than through the mmc tree.

Andy
Kuo-Jung Su - June 18, 2013, 12:48 a.m.
2013/6/18 Andy Fleming <afleming@gmail.com>:
>
>
>
> On Mon, Jun 17, 2013 at 7:07 AM, Kuo-Jung Su <dantesu@gmail.com> wrote:
>>
>> From: Kuo-Jung Su <dantesu@faraday-tech.com>
>>
>> This updates ftsdc010_mci.c for latest Faraday clock APIs.
>>
>> Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
>> CC: Albert Aribaud <albert.u.boot@aribaud.net>
>> CC: Andy Fleming <afleming@gmail.com>
>
>
>
> Acked-by: Andy Fleming <afleming@freescale.com>
>
> Since this is part of a series, it should go in with the rest of them,
> rather than through the mmc tree.
>

Got it, thanks



--
Best wishes,
Kuo-Jung Su

Patch

diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c
index 562b14a..0a0a19b 100644
--- a/drivers/mmc/ftsdc010_mci.c
+++ b/drivers/mmc/ftsdc010_mci.c
@@ -363,7 +363,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;