mmc: sunxi: allow 3.3V DDR when DDR is available
authorIcenowy Zheng <icenowy@aosc.io>
Sun, 22 Jul 2018 12:54:07 +0000 (20:54 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 1 Aug 2018 10:02:03 +0000 (12:02 +0200)
Some Allwinner boards feature an on-board eMMC with fixed 3.3V voltage
(e.g. Banana Pi M2+), and in this case both the eMMC and the SoC are
capable of doing 3.3V DDR transmission.

Add capability of 3.3V DDR when DDR is available (extra clock or new
timing).

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c

index 8e7f3e35ee3dc48eef93c126f2d161ad63b3dc12..4ea8e26110794fbec3a2ff0ac7c14f674e4eb602 100644 (file)
@@ -1388,7 +1388,7 @@ static int sunxi_mmc_probe(struct platform_device *pdev)
                                  MMC_CAP_ERASE | MMC_CAP_SDIO_IRQ;
 
        if (host->cfg->clk_delays || host->use_new_timings)
-               mmc->caps      |= MMC_CAP_1_8V_DDR;
+               mmc->caps      |= MMC_CAP_1_8V_DDR | MMC_CAP_3_3V_DDR;
 
        ret = mmc_of_parse(mmc);
        if (ret)