summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-02-19 20:34:32 +0100
committerHans de Goede <hdegoede@redhat.com>2015-02-21 16:53:15 +0100
commit1de32b8a69eebdd208914c2a90dfb6cdd8ea8352 (patch)
tree61a745131b587f5a91f4c9b09a1f8017bd5d4a51
parentaad2ac24c0871bb897be676aca946f37dd05f187 (diff)
downloadu-boot-imx-1de32b8a69eebdd208914c2a90dfb6cdd8ea8352.zip
u-boot-imx-1de32b8a69eebdd208914c2a90dfb6cdd8ea8352.tar.gz
u-boot-imx-1de32b8a69eebdd208914c2a90dfb6cdd8ea8352.tar.bz2
sunxi: mmc: Always declare High Capacity capability
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>
-rw-r--r--drivers/mmc/sunxi_mmc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
index ebfec7c..2233545 100644
--- a/drivers/mmc/sunxi_mmc.c
+++ b/drivers/mmc/sunxi_mmc.c
@@ -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;