summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorYangbo Lu <yangbo.lu@nxp.com>2020-09-01 16:58:03 +0800
committerPeng Fan <peng.fan@nxp.com>2020-10-12 15:46:32 +0800
commit8c96880814b23b5e17b5e7d350ea6066dae54bc6 (patch)
tree0a9b1dec0c0aa51b7605e903ba9216b399678696 /drivers
parent1b5f0ba7a5e880869069b9b6ea4c0244118a05af (diff)
downloadu-boot-8c96880814b23b5e17b5e7d350ea6066dae54bc6.tar.gz
u-boot-8c96880814b23b5e17b5e7d350ea6066dae54bc6.tar.xz
u-boot-8c96880814b23b5e17b5e7d350ea6066dae54bc6.zip
mmc: add a hs400_tuning flag
Some controllers may have difference between HS200 tuning and HS400 tuning, such as different registers setting, different procedure, or different errata. This patch is to add a hs400_tuning flag to identify the tuning for HS400 mode. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mmc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 0727505304..b75c2bc830 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -1982,7 +1982,9 @@ static int mmc_select_hs400(struct mmc *mmc)
mmc_set_clock(mmc, mmc->tran_speed, false);
/* execute tuning if needed */
+ mmc->hs400_tuning = 1;
err = mmc_execute_tuning(mmc, MMC_CMD_SEND_TUNING_BLOCK_HS200);
+ mmc->hs400_tuning = 0;
if (err) {
debug("tuning failed\n");
return err;