From a961323b981c3f16d4fa613b74ae63532401b6bc Mon Sep 17 00:00:00 2001 From: Philipp Tomsich Date: Thu, 7 Apr 2016 23:51:33 +0200 Subject: sunxi: mark SDC2 on sun9i (A80) as capable of 8-bit mode --- drivers/mmc/sunxi_mmc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 4a7dbed043..bf6b22238a 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c @@ -485,6 +485,10 @@ struct mmc *sunxi_mmc_init(int sdc_no) cfg->voltages = MMC_VDD_32_33 | MMC_VDD_33_34; cfg->host_caps = MMC_MODE_4BIT; +#if defined(CONFIG_MACH_SUN9I) + if (sdc_no == 2) + cfg->host_caps = MMC_MODE_8BIT; +#endif cfg->host_caps |= MMC_MODE_HS_52MHz | MMC_MODE_HS; cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT; -- cgit v1.2.3