Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138408
b: refs/heads/master
c: 7b89099
h: refs/heads/master
v: v3
  • Loading branch information
Laurent Pinchart authored and Kumar Gala committed Jan 29, 2009
1 parent 772bb13 commit f46efc3
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 96051465fdc29e00dd14b484a45daac089c657f8
refs/heads/master: 7b8909940a524d67b4352c29256ada476f50fbba
3 changes: 2 additions & 1 deletion trunk/arch/powerpc/sysdev/cpm2.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ void __cpm2_setbrg(uint brg, uint rate, uint clk, int div16, int src)
brg -= 4;
}
bp += brg;
val = (((clk / rate) - 1) << 1) | CPM_BRG_EN | src;
/* Round the clock divider to the nearest integer. */
val = (((clk * 2 / rate) - 1) & ~1) | CPM_BRG_EN | src;
if (div16)
val |= CPM_BRG_DIV16;

Expand Down

0 comments on commit f46efc3

Please sign in to comment.