summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorWills Wang <wills.wang.open@gmail.com>2014-09-22 18:26:03 +0800
committerHans de Goede <hdegoede@redhat.com>2014-10-24 09:35:37 +0200
commita3e8c22011e9b00e356c9f216ed886e524ca24c3 (patch)
treee592614aeff845dbc566ff0f1f435725cd3e2872 /drivers/mmc
parentd71910fc509933fab881f85ae244ea95525a41d6 (diff)
downloadu-boot-imx-a3e8c22011e9b00e356c9f216ed886e524ca24c3.zip
u-boot-imx-a3e8c22011e9b00e356c9f216ed886e524ca24c3.tar.gz
u-boot-imx-a3e8c22011e9b00e356c9f216ed886e524ca24c3.tar.bz2
mmc: sunxi: add SDHC support for sun6i/sun7i/sun8i
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/sunxi_mmc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c
index d4e574f..bc2c4b3 100644
--- a/drivers/mmc/sunxi_mmc.c
+++ b/drivers/mmc/sunxi_mmc.c
@@ -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;