From 479a8dd6dc2ca9223514289ed2aa11c659197594 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Wed, 10 Jul 2019 09:35:20 +0000 Subject: [PATCH] mmc: Parse no-1-8-v DT property Parse no-1-8-v DT Signed-off-by: Peng Fan Reviewed-by: Jean-Jacques Hiblot Cc: Marek Vasut --- 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 d4db4c8579..551007905c 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -184,6 +184,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.25.1