summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorAshok Reddy Soma <ashok.reddy.soma@amd.com>2023-01-10 14:31:23 +0300
committerJaehoon Chung <jh80.chung@samsung.com>2023-01-31 16:02:27 +0300
commit386f5d367329a202abe71fd790e8ce4598b30e09 (patch)
tree236561b4b23b8697628baddf754a8b558eef1ffe /drivers/mmc
parent6f5bb9913ca54fe0a3e45f83458eb71103e22ef7 (diff)
downloadu-boot-386f5d367329a202abe71fd790e8ce4598b30e09.tar.xz
mmc: sdhci: Enable HS400 support if available in caps
HS400 is indicated in bit63 of capability register in few IP's. Add a quirk to check this and add HS400 to host capabilities. Signed-off-by: Ashok Reddy Soma <ashok.reddy.soma@amd.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/sdhci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 181ab9b7cb..c6b250b9a1 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -995,6 +995,10 @@ int sdhci_setup_cfg(struct mmc_config *cfg, struct sdhci_host *host,
cfg->host_caps |= MMC_CAP(UHS_SDR50);
}
+ if ((host->quirks & SDHCI_QUIRK_CAPS_BIT63_FOR_HS400) &&
+ (caps_1 & SDHCI_SUPPORT_HS400))
+ cfg->host_caps |= MMC_CAP(MMC_HS_400);
+
if (caps_1 & SDHCI_SUPPORT_DDR50)
cfg->host_caps |= MMC_CAP(UHS_DDR50);