From: Peng Fan Date: Wed, 10 Jul 2019 09:35:20 +0000 (+0000) Subject: mmc: Parse no-1-8-v DT property X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=479a8dd6dc2ca9223514289ed2aa11c659197594;p=u-boot.git 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 --- 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; }