Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201580
b: refs/heads/master
c: a6e92b4
h: refs/heads/master
v: v3
  • Loading branch information
Eric Bénard authored and Sascha Hauer committed Jul 26, 2010
1 parent 1647740 commit 6bd4c5f
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 648beaf5bd7072031bddd84bf7bb482ec459a603
refs/heads/master: a6e92b49ae5ef48e1791e5df8368af1fe8b3bd9a
5 changes: 4 additions & 1 deletion trunk/arch/arm/mach-mx25/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ static unsigned long get_rate_lcdc(struct clk *clk)

static unsigned long get_rate_otg(struct clk *clk)
{
return 48000000; /* FIXME */
unsigned long cctl = readl(CRM_BASE + CCM_CCTL);
unsigned long rate = get_rate_upll();

return (cctl & (1 << 23)) ? 0 : rate / ((0x3F & (cctl >> 16)) + 1);
}

static int clk_cgcr_enable(struct clk *clk)
Expand Down

0 comments on commit 6bd4c5f

Please sign in to comment.