diff mbox series

[U-Boot,V2,2/7] mmc: Parse HS400 Enhanced strobe DT properties

Message ID 20190710095006.15801-2-peng.fan@nxp.com
State Accepted
Commit b0fc3127bd22fc8d1185163e42f6a8457e5ca32c
Delegated to: Peng Fan
Headers show
Series [U-Boot,V2,1/7] mmc: support hs400 enhanced strobe mode | expand

Commit Message

Peng Fan July 10, 2019, 9:35 a.m. UTC
Add HS400 Enhanced strobe properties parsing support to mmc_of_parse().

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Cc: Marek Vasut <marek.vasut+renesas@gmail.com>
---

V2:
 Add R-b tag

 drivers/mmc/mmc-uclass.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c
index 890b380f1f..528e7671d4 100644
--- a/drivers/mmc/mmc-uclass.c
+++ b/drivers/mmc/mmc-uclass.c
@@ -187,6 +187,8 @@  int mmc_of_parse(struct udevice *dev, struct mmc_config *cfg)
 		cfg->host_caps |= MMC_CAP(MMC_HS_400);
 	if (dev_read_bool(dev, "mmc-hs400-1_2v"))
 		cfg->host_caps |= MMC_CAP(MMC_HS_400);
+	if (dev_read_bool(dev, "mmc-hs400-enhanced-strobe"))
+		cfg->host_caps |= MMC_CAP(MMC_HS_400_ES);
 
 	if (dev_read_bool(dev, "non-removable")) {
 		cfg->host_caps |= MMC_CAP_NONREMOVABLE;