Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313387
b: refs/heads/master
c: 55ffe16
h: refs/heads/master
i:
  313385: 8211783
  313383: 5f4683c
v: v3
  • Loading branch information
Vikram Pandita authored and Paul Walmsley committed Jul 4, 2012
1 parent 27df658 commit 9b72479
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f0d3d821db4ffa63de344347587429b940086e25
refs/heads/master: 55ffe163c8b4e2aa0a083000e02ec26efd71ea63
12 changes: 11 additions & 1 deletion trunk/arch/arm/mach-omap2/dpll3xxx.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,20 @@ static u16 _omap3_dpll_compute_freqsel(struct clk *clk, u8 n)
*/
static int _omap3_noncore_dpll_lock(struct clk *clk)
{
const struct dpll_data *dd;
u8 ai;
int r;
u8 state = 1;
int r = 0;

pr_debug("clock: locking DPLL %s\n", clk->name);

dd = clk->dpll_data;
state <<= __ffs(dd->idlest_mask);

/* Check if already locked */
if ((__raw_readl(dd->idlest_reg) & dd->idlest_mask) == state)
goto done;

ai = omap3_dpll_autoidle_read(clk);

if (ai)
Expand All @@ -152,6 +161,7 @@ static int _omap3_noncore_dpll_lock(struct clk *clk)
if (ai)
omap3_dpll_allow_idle(clk);

done:
return r;
}

Expand Down

0 comments on commit 9b72479

Please sign in to comment.