author | Lucas Stach <l.stach@pengutronix.de> | |
Wed, 5 Jun 2013 13:13:25 +0000 (15:13 +0200) | ||
committer | Chris Ball <cjb@laptop.org> | |
Thu, 27 Jun 2013 15:29:14 +0000 (11:29 -0400) | ||
commit | 8ba9580a8045b6d5fed66e13b77599f3d8a77fed | |
tree | 6c6cc85feb82547669750b87ddc36bad355b509f | tree | snapshot (tar.xz tar.gz zip) |
parent | a82e484e2480583b17be6253b985fa6f582ad20d | commit | diff |
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>
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 | diff | blob | history | |
drivers/mmc/host/sdhci-esdhc.h | diff | blob | history | |
drivers/mmc/host/sdhci-of-esdhc.c | diff | blob | history |