Other Parts Discussed in Thread: AM62L
器件型号: AM62L
您好:
uboot 中的提交(在下方)会在 u-boot 中停止 SD UHS 模式。
u-boot 以低速启动 SD 电压开关,此提交将在此过程中禁用 UHS 模式...
请解决这个问题。
Author: Judith Mendez <jm@ti.com>
Date: Wed May 14 17:40:46 2025 -0500
PENDING: mmc: am654_sdhci: Clear UHS_MODE_SELECT
This clears UHS_MODE_SELECT for modes < MMC_HS_52 timing.
When initializing to HS400 mode, the host controller downgrades to non-uhs
modes so clear UHS_MODE_SELECT at modes < MMC_HS_52.
This fixes eMMC writes on j7200 EVM.
Fixes: ee6c46a606bf8 ("mmc: am654_sdhci: Add am654_sdhci_set_control_reg")
Signed-off-by: Judith Mendez <jm@ti.com>
Tested-by: Moteen Shah <m-shah@ti.com>
diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c
index 0df3568f073..d3c8f94dd0c 100644
--- a/drivers/mmc/am654_sdhci.c
+++ b/drivers/mmc/am654_sdhci.c
@@ -527,11 +527,16 @@ static int am654_sdhci_execute_tuning(struct mmc *mmc, u8 opcode)
void am654_sdhci_set_control_reg(struct sdhci_host *host)
{
struct mmc *mmc = host->mmc;
+ u32 reg;
+ reg = sdhci_readw(host, SDHCI_HOST_CONTROL2);
+ reg &= ~SDHCI_CTRL_UHS_MASK;
sdhci_set_voltage(host);
if (mmc->selected_mode > MMC_HS_52)
sdhci_set_uhs_timing(host);
+ else
+ sdhci_writew(host, reg, SDHCI_HOST_CONTROL2);
}