Commit 88b5d9b6 authored by Paul Walmsley's avatar Paul Walmsley Committed by Tony Lindgren

OMAP3 clock: omap3_clkoutx2_recalc() should test DPLL IDLEST to determine if DPLL is bypassed

Convert the DPLL bypass test in omap3_clkoutx2_recalc() to test DPLL IDLEST
bits rather than the CM_CLKEN register.
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 3241b19e
......@@ -577,11 +577,10 @@ static void omap3_clkoutx2_recalc(struct clk *clk)
dd = pclk->dpll_data;
WARN_ON(!dd->control_reg || !dd->enable_mask);
WARN_ON(!dd->idlest_reg || !dd->idlest_mask);
v = __raw_readl(dd->control_reg) & dd->enable_mask;
v >>= __ffs(dd->enable_mask);
if (v != DPLL_LOCKED)
v = __raw_readl(dd->idlest_reg) & dd->idlest_mask;
if (!v)
clk->rate = clk->parent->rate;
else
clk->rate = clk->parent->rate * 2;
......
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