Skip to contentSkip to conversation

mmc: Parse HS400 DT properties

PATCH New Marek Vasut 3 participants 3 messages Nov 13, 2018 – Nov 16, 2018 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: Parse HS400 DT properties

Add HS400 properties parsing support to mmc_of_parse().

Cc Tom Rini <[email protected]>
Cc Jaehoon Chung <[email protected]>
Cc Jean-Jacques Hiblot <[email protected]>
Cc Kishon Vijay Abraham I <[email protected]>
Cc Peng Fan <[email protected]>
Cc Simon Glass <[email protected]>
---
 drivers/mmc/mmc-uclass.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/mmc/mmc-uclass.c +4 -0
index f73f07254b..76225b7939 100644
@@ -166,6 +166,10 @@ int mmc_of_parse(struct udevice *dev, struct mmc_config *cfg)
 		cfg->host_caps |= MMC_CAP(MMC_HS_200);
 	if (dev_read_bool(dev, "mmc-hs200-1_2v"))
 		cfg->host_caps |= MMC_CAP(MMC_HS_200);
+	if (dev_read_bool(dev, "mmc-hs400-1_8v"))
+		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);
 
 	return 0;
 }
Signature · 1 line
2.18.0
#1 lore raw

PATCH 1/1 mmc: Parse HS400 DT properties

Quoted 41 lines

-----Original Message-----
From: Marek Vasut [mailto:marek.vasut at gmail.com]
Sent: 2018年11月14日 7:39
To: u-boot at lists.denx.de
Cc: Marek Vasut <[email protected]>; Tom Rini <[email protected]>; Jaehoon Chung <[email protected]>; Jean-Jacques Hiblot <[email protected]>; Kishon Vijay Abraham I <[email protected]>; Peng Fan <[email protected]>; Simon Glass <[email protected]>
Subject: [PATCH] mmc: Parse HS400 DT properties

Add HS400 properties parsing support to mmc_of_parse().

Cc Tom Rini <[email protected]>
Cc Jaehoon Chung <[email protected]>
Cc Jean-Jacques Hiblot <[email protected]>
Cc Kishon Vijay Abraham I <[email protected]>
Cc Peng Fan <[email protected]>
Cc Simon Glass <[email protected]>
---
 drivers/mmc/mmc-uclass.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/mmc/mmc-uclass.c index renamed from drivers/mmc/mmc-uclass.c +0 -0

f73f07254b..76225b7939 100644

drivers/mmc/mmc-uclass.c +4 -0
@@ -166,6 +166,10 @@ int mmc_of_parse(struct udevice *dev, struct
 mmc_config *cfg)
 		cfg->host_caps |= MMC_CAP(MMC_HS_200);
 	if (dev_read_bool(dev, "mmc-hs200-1_2v"))
 		cfg->host_caps |= MMC_CAP(MMC_HS_200);
+	if (dev_read_bool(dev, "mmc-hs400-1_8v"))
+		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);
 
 	return 0;
Quoted 1 line

}

Quoted 2 lines

--
2.18.0

#2 lore raw

PATCH 1/1 mmc: Parse HS400 DT properties

In reply to Marek Vasut
Quoted 9 lines · Marek Vasut

Add HS400 properties parsing support to mmc_of_parse().

Cc Tom Rini <[email protected]>
Cc Jaehoon Chung <[email protected]>
Cc Jean-Jacques Hiblot <[email protected]>
Cc Kishon Vijay Abraham I <[email protected]>
Cc Peng Fan <[email protected]>
Cc Simon Glass <[email protected]>
Quoted 3 lines
---
 drivers/mmc/mmc-uclass.c | 4 ++++
 1 file changed, 4 insertions(+)