aboutsummaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2018-01-30 16:01:43 +0100
committerJaehoon Chung <jh80.chung@samsung.com>2018-02-19 16:58:55 +0900
commit3149c13ac324dae0b8993a4f6c964a261aa691a9 (patch)
tree8a97c8717f09f2f664913b5f7d7a88e7fc1ccfe0 /drivers/mmc
parentbcc6bd84d48cfc5f7b777feb2e2a6e264b270252 (diff)
downloadu-boot-3149c13ac324dae0b8993a4f6c964a261aa691a9.zip
u-boot-3149c13ac324dae0b8993a4f6c964a261aa691a9.tar.gz
u-boot-3149c13ac324dae0b8993a4f6c964a261aa691a9.tar.bz2
mmc: omap_hsmmc: update mmc->clock with the actual bus speed
When the clock is applied, compute the actual value of the clock. It may be slightly different from the requested value (max freq, divisor threshold) Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/omap_hsmmc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c
index 37fa7a4..b10d55e 100644
--- a/drivers/mmc/omap_hsmmc.c
+++ b/drivers/mmc/omap_hsmmc.c
@@ -1147,7 +1147,8 @@ static void omap_hsmmc_set_clock(struct mmc *mmc)
}
}
- priv->clock = mmc->clock;
+ priv->clock = MMC_CLOCK_REFERENCE * 1000000 / dsor;
+ mmc->clock = priv->clock;
omap_hsmmc_start_clock(mmc_base);
}