mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
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>
This commit is contained in:
parent
bcc6bd84d4
commit
3149c13ac3
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue