Commit 4135b7f8 authored by Alexandre Belloni's avatar Alexandre Belloni Committed by Stephen Boyd

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: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 4b13b645
...@@ -69,7 +69,7 @@ static int clk_slow_osc_prepare(struct clk_hw *hw) ...@@ -69,7 +69,7 @@ static int clk_slow_osc_prepare(struct clk_hw *hw)
void __iomem *sckcr = osc->sckcr; void __iomem *sckcr = osc->sckcr;
u32 tmp = readl(sckcr); u32 tmp = readl(sckcr);
if (tmp & AT91_SCKC_OSC32BYP) if (tmp & (AT91_SCKC_OSC32BYP | AT91_SCKC_OSC32EN))
return 0; return 0;
writel(tmp | AT91_SCKC_OSC32EN, sckcr); writel(tmp | AT91_SCKC_OSC32EN, sckcr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment