Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32991
b: refs/heads/master
c: 171505d
h: refs/heads/master
i:
  32989: 6ca7d8d
  32987: 01caca9
  32983: 7dd6dea
  32975: 5672a0e
  32959: 659ed8e
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Jul 25, 2006
1 parent 63dd169 commit 358147a
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 8cffc6ac66a2b251df2490702923611aa4ac1fc5
refs/heads/master: 171505dafef56e4c84c48399b36604f4be55cf36
6 changes: 5 additions & 1 deletion trunk/arch/powerpc/kernel/udbg_16550.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,14 @@ static int udbg_550_getc(void)
void udbg_init_uart(void __iomem *comport, unsigned int speed,
unsigned int clock)
{
unsigned int dll, base_bauds = clock / 16;
unsigned int dll, base_bauds;

if (clock == 0)
clock = 1843200;
if (speed == 0)
speed = 9600;

base_bauds = clock / 16;
dll = base_bauds / speed;

if (comport) {
Expand Down

0 comments on commit 358147a

Please sign in to comment.