mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
clk: at91: sckc: optimize boot time
Assume that if the oscillator is enabled (OSC32EN bit is present), the delay has already elapsed as the bootloader probably waited for the oscillator to settle. This could waste up to 1.2s. Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
This commit is contained in:
parent
4b13b6451a
commit
4135b7f8d4
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ static int clk_slow_osc_prepare(struct clk_hw *hw)
|
|||
void __iomem *sckcr = osc->sckcr;
|
||||
u32 tmp = readl(sckcr);
|
||||
|
||||
if (tmp & AT91_SCKC_OSC32BYP)
|
||||
if (tmp & (AT91_SCKC_OSC32BYP | AT91_SCKC_OSC32EN))
|
||||
return 0;
|
||||
|
||||
writel(tmp | AT91_SCKC_OSC32EN, sckcr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue