]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sunxi: mmc: Always declare High Capacity capability
authorHans de Goede <hdegoede@redhat.com>
Thu, 19 Feb 2015 20:03:21 +0000 (21:03 +0100)
committerPantelis Antoniou <pantelis.antoniou@konsulko.com>
Mon, 23 Feb 2015 17:46:13 +0000 (19:46 +0200)
High Capacity (e)MMC cards work fine on sun4i / sun5i, and not having this
capability set causes u-boot to not recognize the eMMC on an Utoo P66 A13
tablet, so always set it thereby fixing this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/mmc/sunxi_mmc.c

index ebfec7cf079bb6f55c53c31bb8b7e2219403ebe4..22335452c56c7e241a4744d0a7ed779226464571 100644 (file)
@@ -449,11 +449,7 @@ struct mmc *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_MACH_SUN6I) || defined(CONFIG_MACH_SUN7I) || \
-    defined(CONFIG_MACH_SUN8I) || defined(CONFIG_MACH_SUN9I)
-       cfg->host_caps |= MMC_MODE_HC;
-#endif
+       cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS | MMC_MODE_HC;
        cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
 
        cfg->f_min = 400000;