[PATCH v2 06/11] mmc: fsl_esdhc_imx: fix mmc->clock with actual clock

Jaehoon Chung jh80.chung at samsung.com
Mon Nov 15 09:37:17 CET 2021


On 11/13/21 4:15 AM, Sean Anderson wrote:
> [ fsl_esdhc commit 30f6444d024a74ee48aa6969c1531aecd3c59deb ]
> 
> Fix mmc->clock with actual clock which is divided by the
> controller, and record it with priv->clock.
> 
> Signed-off-by: Yangbo Lu <yangbo.lu at nxp.com>
> Signed-off-by: Sean Anderson <sean.anderson at seco.com>

Reviewed-by: Jaehoon Chung <jh80.chung at samsung.com>

Best Regards,
Jaehoon Chung

> ---
> 
> (no changes since v1)
> 
>  drivers/mmc/fsl_esdhc_imx.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c
> index b2844d0a7b..95cde9e410 100644
> --- a/drivers/mmc/fsl_esdhc_imx.c
> +++ b/drivers/mmc/fsl_esdhc_imx.c
> @@ -665,6 +665,7 @@ static void set_sysctl(struct fsl_esdhc_priv *priv, struct mmc *mmc, uint clock)
>  	esdhc_setbits32(&regs->sysctl, SYSCTL_PEREN | SYSCTL_CKEN);
>  #endif
>  
> +	mmc->clock = sdhc_clk / pre_div / div;
>  	priv->clock = clock;
>  }
>  
> 



More information about the U-Boot mailing list