[U-Boot] [PATCH 2/5] mmc: dm: support "mmc-ddr-1_2v" and "mmc-hs200-1_2v" boolean properties
Simon Glass
sjg at chromium.org
Fri Nov 24 22:36:34 UTC 2017
Hi Jean-Jacques,
On 21 November 2017 at 08:13, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
> 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);
Hmm, please convert to livetree first - e.g. ofnode_read_bool()
>
> return 0;
> }
> --
> 1.9.1
>
Regards,
Simon
More information about the U-Boot
mailing list