mmc: sunxi: Support MMC DDR52 transfer mode with new timing mode
authorChen-Yu Tsai <wens@csie.org>
Mon, 24 Jul 2017 13:59:00 +0000 (21:59 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:49 +0000 (14:01 +0200)
commitc903a2ae546a724a1266628d82917ce0ca994d50
treede167a8d254b2626ceca7adf6c5f4343c6a21305
parentff39e7f742fdb1879e06bd7fd5a1daf9b8be430d
mmc: sunxi: Support MMC DDR52 transfer mode with new timing mode

The MMC controller can support DDR52 transfers under the new timing
mode. According to the BSP kernel, the module clock has to be double
the card clock, regardless of the bus width. The default timings in
the hardware can be used.

This also reworks the code setting the internal divider, getting rid
of a extra conditional.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c