Browse Source

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>
(cherry picked from commit ba0c1f75a7)
Peng Fan 3 years ago
parent
commit
cf0bcd52f9
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      drivers/mmc/mmc.c

+ 2
- 0
drivers/mmc/mmc.c View File

@ -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)


Loading…
Cancel
Save