[U-Boot] [PATCH V2 3/7] mmc: Parse no-1-8-v DT property
Peng Fan
peng.fan at nxp.com
Wed Jul 10 09:35:20 UTC 2019
Parse no-1-8-v DT
Signed-off-by: Peng Fan <peng.fan at nxp.com>
Reviewed-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
Cc: Marek Vasut <marek.vasut+renesas at gmail.com>
---
V2:
Add R-b tag
drivers/mmc/mmc-uclass.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c
index 528e7671d4..9b354fd614 100644
--- a/drivers/mmc/mmc-uclass.c
+++ b/drivers/mmc/mmc-uclass.c
@@ -199,6 +199,11 @@ int mmc_of_parse(struct udevice *dev, struct mmc_config *cfg)
cfg->host_caps |= MMC_CAP_NEEDS_POLL;
}
+ if (dev_read_bool(dev, "no-1-8-v")) {
+ cfg->host_caps &= ~(UHS_CAPS | MMC_MODE_HS200 |
+ MMC_MODE_HS400 | MMC_MODE_HS400_ES);
+ }
+
return 0;
}
--
2.16.4
More information about the U-Boot
mailing list