Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212651
b: refs/heads/master
c: e482b3b
h: refs/heads/master
i:
  212649: 17448d5
  212647: fbba791
v: v3
  • Loading branch information
Eric Bénard authored and Sascha Hauer committed Oct 19, 2010
1 parent 592eca6 commit f4989fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 6136a6ddc9db50d909344bb7e6f45dbe631f2e29
refs/heads/master: e482b3bee66d627356904746c217f8f1bf891e60
6 changes: 3 additions & 3 deletions trunk/arch/arm/mach-mx25/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ unsigned long get_rate_arm(struct clk *clk)
unsigned long rate = get_rate_mpll();

if (cctl & (1 << 14))
rate = (rate * 3) >> 1;
rate = (rate * 3) >> 2;

return rate / ((cctl >> 30) + 1);
}
Expand All @@ -99,7 +99,7 @@ static unsigned long get_rate_per(int per)
if (readl(CRM_BASE + 0x64) & (1 << per))
fref = get_rate_upll();
else
fref = get_rate_ipg(NULL);
fref = get_rate_ahb(NULL);

return fref / (val + 1);
}
Expand Down Expand Up @@ -261,7 +261,7 @@ DEFINE_CLOCK(esdhc2_clk, 1, CCM_CGCR1, 14, get_rate_esdhc2, NULL,
DEFINE_CLOCK(audmux_clk, 0, CCM_CGCR1, 0, NULL, NULL, NULL);
DEFINE_CLOCK(csi_clk, 0, CCM_CGCR1, 4, get_rate_csi, NULL, &csi_per_clk);
DEFINE_CLOCK(can1_clk, 0, CCM_CGCR1, 2, get_rate_ipg, NULL, NULL);
DEFINE_CLOCK(can2_clk, 0, CCM_CGCR1, 3, get_rate_ipg, NULL, NULL);
DEFINE_CLOCK(can2_clk, 1, CCM_CGCR1, 3, get_rate_ipg, NULL, NULL);

#define _REGISTER_CLOCK(d, n, c) \
{ \
Expand Down

0 comments on commit f4989fa

Please sign in to comment.