diff options
author | Sean Anderson <sean.anderson@seco.com> | 2021-11-23 15:03:41 -0500 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2022-01-12 09:56:39 +0900 |
commit | 4ea11bf241cc19612fc1352d886e64890561f344 (patch) | |
tree | 82dff9508b56a0085f803f935a03e0f7ec8d8738 | |
parent | d39aa73ca87022c9deb0cc1c11dbf4fdb8e27037 (diff) | |
download | u-boot-4ea11bf241cc19612fc1352d886e64890561f344.tar.gz u-boot-4ea11bf241cc19612fc1352d886e64890561f344.tar.bz2 u-boot-4ea11bf241cc19612fc1352d886e64890561f344.zip |
mmc: fsl_esdhc_imx: fix mmc->clock with actual clock
[ 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@nxp.com>
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
-rw-r--r-- | drivers/mmc/fsl_esdhc_imx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index 4d2d757723..72f3eec205 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(®s->sysctl, SYSCTL_PEREN | SYSCTL_CKEN); #endif + mmc->clock = sdhc_clk / pre_div / div; priv->clock = clock; } |