summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core/mmc.c
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2017-08-10 11:29:54 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2017-08-30 14:02:00 +0200
commit082bb85fbfb4b87787229182db4d22e5ed9fc8e6 (patch)
tree72510fb82005325b2ca75399a3006c4ba5e47418 /drivers/mmc/core/mmc.c
parent41279f0197583a0af4e52575bb8480c4f811b7a9 (diff)
downloadlinux-082bb85fbfb4b87787229182db4d22e5ed9fc8e6.tar.bz2
mmc: sunxi: Fix clock rate passed to sunxi_mmc_clk_set_phase
sunxi_mmc_clk_set_phase expects the actual card clock rate to be passed to it. When the internal divider code was reworked in change ("mmc: sunxi: Support MMC DDR52 transfer mode with new timing mode"), this requirement was missed, and the module clock rate was passed in instead. This broke 8 bit DDR MMC on old controllers, as the module clock rate is double the card clock rate, for which we have no valid delay settings. Fix this by applying the internal divider to the clock rate right after we configure it in hardware. Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/mmc.c')
0 files changed, 0 insertions, 0 deletions