mmc: sunxi: Support new mode
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 23 Aug 2017 10:03:41 +0000 (12:03 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 28 Aug 2017 17:06:44 +0000 (22:36 +0530)
commitde9b1771c3b663509102aa05b4275949da69f998
tree22dfd9766e26175be0442dcf1791ebdd9e2e846f
parent8b3cec7da18645eda7f7cd0b65ee9f2dac573409
mmc: sunxi: Support new mode

Almost all of the newer Allwinner SoCs have a new operating mode for the
eMMC clocks that needs to be enabled in both the clock and the MMC
controller.

Details about that mode are sparse, and the name itself (new mode vs old
mode) doesn't give much details, but it seems that the it changes the
sampling of the MMC clock. One side effect is also that it divides the
parent clock rate by 2.

Add support for it through a Kconfig option.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
arch/arm/include/asm/arch-sunxi/clock_sun8i_a83t.h
arch/arm/include/asm/arch-sunxi/mmc.h
drivers/mmc/Kconfig
drivers/mmc/sunxi_mmc.c