[U-Boot] [PATCH v2 2/5] mmc: fsl_esdhc: ppc: set sdhc clock

Prabhakar Kushwaha prabhakar.kushwaha at nxp.com
Sun Apr 7 09:36:22 UTC 2019


> -----Original Message-----
> From: Yinbo Zhu
> Sent: Tuesday, March 26, 2019 8:39 AM
> To: York Sun <york.sun at nxp.com>; u-boot at lists.denx.de
> Cc: Yinbo Zhu <yinbo.zhu at nxp.com>; Xiaobo Xie <xiaobo.xie at nxp.com>; Ran
> Wang <ran.wang_1 at nxp.com>; Jiafei Pan <jiafei.pan at nxp.com>; Y.b. Lu
> <yangbo.lu at nxp.com>; Jagdish Gediya <jagdish.gediya at nxp.com>; Prabhakar
> Kushwaha <prabhakar.kushwaha at nxp.com>
> Subject: [PATCH v2 2/5] mmc: fsl_esdhc: ppc: set sdhc clock
> 
> From: Yinbo Zhu <yinbo.zhu at nxp.com>
> 
> This patch is to set sdhc clock for ppc

Can we get more description on this

> 
> Signed-off-by: Yinbo Zhu <yinbo.zhu at nxp.com>
> ---
>  drivers/mmc/fsl_esdhc.c | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index
> 9e34557d16..a65e5c19db 100644
> --- a/drivers/mmc/fsl_esdhc.c
> +++ b/drivers/mmc/fsl_esdhc.c
> @@ -1428,7 +1428,9 @@ void fdt_fixup_esdhc(void *blob, bd_t *bd)  #endif
> 
>  #if CONFIG_IS_ENABLED(DM_MMC)
> +#ifndef CONFIG_PPC
>  #include <asm/arch/clock.h>
> +#endif
>  __weak void init_clk_usdhc(u32 index)
>  {
>  }
> @@ -1454,7 +1456,7 @@ static int fsl_esdhc_probe(struct udevice *dev)
>  	if (addr == FDT_ADDR_T_NONE)
>  		return -EINVAL;
> 
> -	priv->esdhc_regs = (struct fsl_esdhc *)addr;
> +	priv->esdhc_regs = (struct fsl_esdhc *)(addr);

Why this change is required?

--pk


More information about the U-Boot mailing list