[U-Boot] [PATCH 2/5] mmc: dm: support "mmc-ddr-1_2v" and "mmc-hs200-1_2v" boolean properties
Jean-Jacques Hiblot
jjhiblot at ti.com
Tue Nov 21 15:13:05 UTC 2017
Signed-off-by: Jean-Jacques Hiblot <jjhiblot at ti.com>
---
drivers/mmc/mmc-uclass.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c
index 48fafce..9723129 100644
--- a/drivers/mmc/mmc-uclass.c
+++ b/drivers/mmc/mmc-uclass.c
@@ -161,8 +161,12 @@ int mmc_of_parse(const void *fdt, int node, struct mmc_config *cfg)
cfg->host_caps |= MMC_CAP(UHS_DDR50);
if (fdtdec_get_bool(fdt, node, "mmc-ddr-1_8v"))
cfg->host_caps |= MMC_CAP(MMC_DDR_52);
+ if (fdtdec_get_bool(fdt, node, "mmc-ddr-1_2v"))
+ cfg->host_caps |= MMC_CAP(MMC_DDR_52);
if (fdtdec_get_bool(fdt, node, "mmc-hs200-1_8v"))
cfg->host_caps |= MMC_CAP(MMC_HS_200);
+ if (fdtdec_get_bool(fdt, node, "mmc-hs200-1_2v"))
+ cfg->host_caps |= MMC_CAP(MMC_HS_200);
return 0;
}
--
1.9.1
More information about the U-Boot
mailing list