mmc: sdhci-esdhc-imx: add MMC_CAP_1_8V_DDR for mx6
authorDong Aisheng <b29396@freescale.com>
Wed, 30 Oct 2013 14:09:52 +0000 (22:09 +0800)
committerChris Ball <chris@printf.net>
Mon, 13 Jan 2014 17:48:04 +0000 (12:48 -0500)
The i.MX6 supports 1.8v/3.3v eMMC DDR mode, so add this flag.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-esdhc-imx.c

index fc32367c148c1ba849f6aa30e0df3310dd5d5ee7..baa27c75b7710b99136dcdad1756db16ef90b849 100644 (file)
@@ -1025,6 +1025,7 @@ static int sdhci_esdhc_imx_probe(struct platform_device *pdev)
        if (esdhc_is_usdhc(imx_data)) {
                writel(0x08100810, host->ioaddr + ESDHC_WTMK_LVL);
                host->quirks2 |= SDHCI_QUIRK2_PRESET_VALUE_BROKEN;
+               host->mmc->caps |= MMC_CAP_1_8V_DDR;
        }
 
        if (imx_data->socdata->flags & ESDHC_FLAG_MAN_TUNING)