Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34019
b: refs/heads/master
c: e70e943
h: refs/heads/master
i:
  34017: 855f933
  34015: f5e1ec8
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Jul 7, 2006
1 parent d3d92dc commit 0659c94
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: 1e031d65b0cb5f882b20ebc356ea0345ff18dbf0
refs/heads/master: e70e943847bdae13175bf3a8bca6328e369de90a
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 0659c94

Please sign in to comment.