[U-Boot] [PATCH] mmc: Parse HS400 DT properties

Jean-Jacques Hiblot jjhiblot at ti.com
Tue Jun 19 07:05:43 UTC 2018



On 19/06/2018 06:23, Marek Vasut wrote:
> Add HS400 properties parsing support to mmc_of_parse().
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Cc: Jaehoon Chung <jh80.chung at samsung.com>
> Cc: Jean-Jacques Hiblot <jjhiblot at ti.com>
> Cc: Kishon Vijay Abraham I <kishon at ti.com>
> Cc: Peng Fan <peng.fan at nxp.com>
> Cc: Simon Glass <sjg at chromium.org>
> ---
>   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 f73f07254b..76225b7939 100644
> --- a/drivers/mmc/mmc-uclass.c
> +++ b/drivers/mmc/mmc-uclass.c
> @@ -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;
>   }

Reviewed-by: Jean-Jacques <jjhiblot at ti.com>



More information about the U-Boot mailing list