forked from pool/u-boot
Dirk Mueller
f39b767ea5
Fix boo#1216036. Tested on RPi4. Boot from USB and uSD fine. For details see: https://lore.kernel.org/u-boot/20231023070216.394709-1-sjg@chromium.org/#t * Patches added: 0018-Revert-bootstd-Scan-all-bootdevs-in.patch 0019-bootstd-Expand-boot-ordering-test-t.patch 0020-bootstd-Correct-logic-for-single-uc.patch 0021-bootstd-Scan-all-bootdevs-in-a-boot.patch OBS-URL: https://build.opensuse.org/request/show/1120007 OBS-URL: https://build.opensuse.org/package/show/hardware:boot/u-boot?expand=0&rev=201
25 lines
905 B
Diff
25 lines
905 B
Diff
From 4dfea5f29e331a721d44f138225aad377ecb86bf Mon Sep 17 00:00:00 2001
|
|
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
|
|
index 5085a3b491d..6c098475bea 100644
|
|
--- a/drivers/mmc/dw_mmc.c
|
|
+++ b/drivers/mmc/dw_mmc.c
|
|
@@ -609,7 +609,8 @@ void dwmci_setup_cfg(struct mmc_config *cfg, struct dwmci_host *host,
|
|
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;
|
|
}
|