]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mmc: sdhci-esdhc: calculate sdclk divider from controller clock
authorLucas Stach <l.stach@pengutronix.de>
Wed, 5 Jun 2013 13:13:25 +0000 (15:13 +0200)
committerChris Ball <cjb@laptop.org>
Thu, 27 Jun 2013 15:29:14 +0000 (11:29 -0400)
commit8ba9580a8045b6d5fed66e13b77599f3d8a77fed
tree6c6cc85feb82547669750b87ddc36bad355b509f
parenta82e484e2480583b17be6253b985fa6f582ad20d
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>
drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci-esdhc.h
drivers/mmc/host/sdhci-of-esdhc.c