mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-23 07:31:32 +00:00
mmc: Parse HS400 DT properties
Add HS400 properties parsing support to mmc_of_parse(). Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Jean-Jacques Hiblot <jjhiblot@ti.com> Cc: Kishon Vijay Abraham I <kishon@ti.com> Cc: Peng Fan <peng.fan@nxp.com> Cc: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
f58d6771a2
commit
eb2acbafff
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue