diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2013-06-05 15:13:25 +0200 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-06-27 11:29:14 -0400 |
commit | 8ba9580a8045b6d5fed66e13b77599f3d8a77fed (patch) | |
tree | 6c6cc85feb82547669750b87ddc36bad355b509f /drivers/mmc/host/sdhci-of-esdhc.c | |
parent | a82e484e2480583b17be6253b985fa6f582ad20d (diff) | |
download | op-kernel-dev-8ba9580a8045b6d5fed66e13b77599f3d8a77fed.zip op-kernel-dev-8ba9580a8045b6d5fed66e13b77599f3d8a77fed.tar.gz |
mmc: sdhci-esdhc: calculate sdclk divider from controller clock
The SDCLK is divided down from the host controller clock. Host
controller clock may be different from the maximum SDCLK, so
get it from the platform, instead of just using the max SDCLK.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-of-esdhc.c')
-rw-r--r-- | drivers/mmc/host/sdhci-of-esdhc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c index 37e668f..2b73697 100644 --- a/drivers/mmc/host/sdhci-of-esdhc.c +++ b/drivers/mmc/host/sdhci-of-esdhc.c @@ -200,7 +200,7 @@ static void esdhc_of_set_clock(struct sdhci_host *host, unsigned int clock) } /* Set the clock */ - esdhc_set_clock(host, clock); + esdhc_set_clock(host, clock, host->max_clk); } #ifdef CONFIG_PM |