From: Jean-Jacques Hiblot Date: Wed, 10 Jul 2019 10:08:51 +0200 Subject: [U-Boot] [PATCH 3/7] mmc: Parse no-1-8-v DT property In-Reply-To: <20190710080613.24025-3-peng.fan@nxp.com> References: <20190710080613.24025-1-peng.fan@nxp.com> <20190710080613.24025-3-peng.fan@nxp.com> Message-ID: <9bf559e6-5533-196c-d6b6-01338480dbef@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 10/07/2019 09:51, Peng Fan wrote: > Parse no-1-8-v DT > > Signed-off-by: Peng Fan > Cc: 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 012784f28c..d865a01e00 100644 > --- a/drivers/mmc/mmc-uclass.c > +++ b/drivers/mmc/mmc-uclass.c > @@ -197,6 +197,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; > } > Reviewed-by: Jean-Jacques Hiblot