[U-Boot] [PATCH v4 03/10] mmc: Fixed a problem with old sd or mmc that do not support High speed
Jean-Jacques Hiblot
jjhiblot at ti.com
Wed Nov 29 14:29:48 UTC 2017
As the legacy modes were not added to the list of supported modes, old
cards that do not support other modes could not be used.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
Reviewed-by: Lukasz Majewski <lukma at denx.de>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
no change since v1
drivers/mmc/mmc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 9b5c982..c1f8851 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -818,7 +818,7 @@ static int mmc_get_capabilities(struct mmc *mmc)
u8 *ext_csd = mmc->ext_csd;
char cardtype;
- mmc->card_caps = MMC_MODE_1BIT;
+ mmc->card_caps = MMC_MODE_1BIT | MMC_CAP(MMC_LEGACY);
if (mmc_host_is_spi(mmc))
return 0;
@@ -1171,7 +1171,7 @@ static int sd_get_capabilities(struct mmc *mmc)
int timeout;
u32 sd3_bus_mode;
- mmc->card_caps = MMC_MODE_1BIT;
+ mmc->card_caps = MMC_MODE_1BIT | MMC_CAP(SD_LEGACY);
if (mmc_host_is_spi(mmc))
return 0;
--
1.9.1
More information about the U-Boot
mailing list