> -----Original Message-----
> From: Marek Vasut [mailto:[email protected]]
> Sent: 2018年6月19日 12:23
> To: [email protected]
> Cc: Marek Vasut <[email protected]>; Bin Meng
> <[email protected]>; Jaehoon Chung <[email protected]>;
> Jean-Jacques Hiblot <[email protected]>; Kishon Vijay Abraham I <[email protected]>;
> Peng Fan <[email protected]>; Simon Glass <[email protected]>
> Subject: [PATCH] mmc: Parse HS400 DT properties
> 
> Add HS400 properties parsing support to mmc_of_parse().
> 
> Signed-off-by: Marek Vasut <[email protected]>
> Cc: Bin Meng <[email protected]>
> Cc: Jaehoon Chung <[email protected]>
> Cc: Jean-Jacques Hiblot <[email protected]>
> Cc: Kishon Vijay Abraham I <[email protected]>
> Cc: Peng Fan <[email protected]>
> Cc: Simon Glass <[email protected]>
> ---
>  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: Peng Fan <[email protected]>

> --
> 2.17.1

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to