]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit811c0d79ca0f5a813677ae68ae532c2fe08c6473
treede167a8d254b2626ceca7adf6c5f4343c6a21305
parent49aafacdd48ce229963aa4f708ea761de20af329
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