summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-12-04 19:22:31 -0500
committerTom Rini <trini@konsulko.com>2018-12-04 19:22:31 -0500
commit2e2a2a5d4f0c2e2642326d9000ce1f1553632e6a (patch)
tree9b4ad5eb1b01e2e418c490afd00a3ba2ca9de4cb /drivers/mmc
parentd452f27b3ea806fd99aee4b73a723318032c1d5c (diff)
parent04513805054478aa024b6c67cb1dcdcd1b37625a (diff)
Merge branch 'master' of git://git.denx.de/u-boot-sh
- DT sync with Linux 4.19 and minor fixes.
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/mmc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index d6b9cdc992..f5c821e308 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1289,6 +1289,10 @@ static int sd_set_card_speed(struct mmc *mmc, enum bus_mode mode)
ALLOC_CACHE_ALIGN_BUFFER(uint, switch_status, 16);
int speed;
+ /* SD version 1.00 and 1.01 does not support CMD 6 */
+ if (mmc->version == SD_VERSION_1_0)
+ return 0;
+
switch (mode) {
case SD_LEGACY:
speed = UHS_SDR12_BUS_SPEED;