2021-04-06 10:44:03 +02:00
|
|
|
From 612aefa5be3ff8074a17862ca5121b86da401e02 Mon Sep 17 00:00:00 2001
|
2018-04-09 11:18:07 +02:00
|
|
|
From: Guillaume GARDET <guillaume.gardet@free.fr>
|
|
|
|
Date: Mon, 9 Apr 2018 10:28:26 +0200
|
|
|
|
Subject: [PATCH] Temp workaround for Chromebook snow to avoid the 'unable to
|
|
|
|
select a mode' error
|
|
|
|
|
|
|
|
---
|
|
|
|
drivers/mmc/dw_mmc.c | 3 ++-
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c
|
2021-04-06 10:44:03 +02:00
|
|
|
index 7c8a312fa7..2865e9f964 100644
|
2018-04-09 11:18:07 +02:00
|
|
|
--- a/drivers/mmc/dw_mmc.c
|
|
|
|
+++ b/drivers/mmc/dw_mmc.c
|
2021-04-06 10:44:03 +02:00
|
|
|
@@ -608,7 +608,8 @@ void dwmci_setup_cfg(struct mmc_config *cfg, struct dwmci_host *host,
|
2018-04-09 11:18:07 +02:00
|
|
|
cfg->host_caps |= MMC_MODE_4BIT;
|
|
|
|
cfg->host_caps &= ~MMC_MODE_8BIT;
|
|
|
|
}
|
|
|
|
- cfg->host_caps |= MMC_MODE_HS | MMC_MODE_HS_52MHz;
|
|
|
|
+ /* Temp workaround for Chromebook snow to avoid the 'unable to select a mode' error */
|
|
|
|
+// cfg->host_caps |= MMC_MODE_HS | MMC_MODE_HS_52MHz;
|
|
|
|
|
|
|
|
cfg->b_max = CONFIG_SYS_MMC_MAX_BLK_COUNT;
|
|
|
|
}
|