]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: sunxi: add SDHC support for sun6i/sun7i/sun8i
authorWills Wang <wills.wang.open@gmail.com>
Mon, 22 Sep 2014 10:26:03 +0000 (18:26 +0800)
committerHans de Goede <hdegoede@redhat.com>
Fri, 24 Oct 2014 07:35:37 +0000 (09:35 +0200)
Allwinner A20/A23/A31's SD/MMC host support SDHC High Capacity feature.

Signed-off-by: Wills Wang <wills.wang.open@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/mmc/sunxi_mmc.c

index d4e574fe191b0e8edd587b733be4b9cf5ec6ee24..bc2c4b302b8ffb6c702c9ac43370f5c4f5c73e5c 100644 (file)
@@ -361,6 +361,9 @@ int sunxi_mmc_init(int sdc_no)
        cfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;
        cfg->host_caps = MMC_MODE_4BIT;
        cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS;
+#if defined(CONFIG_SUN6I) || defined(CONFIG_SUN7I) || defined(CONFIG_SUN8I)
+       cfg->host_caps |= MMC_MODE_HC;
+#endif
        cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
 
        cfg->f_min = 400000;