summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2017-09-05 11:16:06 +0800
committerJason Liu <jason.hui.liu@nxp.com>2017-11-03 02:37:16 +0800
commit10c55182c18ef126558c2a87620cd3e8b63cd4d7 (patch)
treeca29e387be6d02c65f964884e4acd1cab76b03f9 /drivers
parent75dca16dd6751f0449e6f018dcff275287d1bd1d (diff)
MLK-16365 mmc: add sd/mmc legacy capability
Add SD/MMC legacy capability. Otherwise the legacy cards supports will be broken. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index daf128a852..680694fdc6 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1555,6 +1555,7 @@ static int sd_select_mode_and_width(struct mmc *mmc, uint card_caps)
/* Restrict card's capabilities by what the host can do */
caps = card_caps & (mmc->cfg->host_caps | MMC_MODE_1BIT);
+ caps |= MMC_CAP(SD_LEGACY);
if (!uhs_en)
caps &= ~UHS_CAPS;
@@ -1693,6 +1694,7 @@ static int mmc_select_mode_and_width(struct mmc *mmc, uint card_caps)
/* Restrict card's capabilities by what the host can do */
card_caps &= (mmc->cfg->host_caps | MMC_MODE_1BIT);
+ card_caps |= MMC_CAP(MMC_LEGACY);
/* Only version 4 of MMC supports wider bus widths */
if (mmc->version < MMC_VERSION_4)