Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196795
b: refs/heads/master
c: 606c958
h: refs/heads/master
i:
  196793: ac13698
  196791: 8288bc6
v: v3
  • Loading branch information
David Daney authored and Ralf Baechle committed May 21, 2010
1 parent 5622e09 commit 474139e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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: 1dd5216e80318b4cb25c1785f5d11a6f042f0a3b
refs/heads/master: 606c958e2857d29106b8d3b2fc30e22f376c80c5
6 changes: 5 additions & 1 deletion trunk/arch/mips/cavium-octeon/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ static void __init octeon_uart_set_common(struct plat_serial8250_port *p)
p->type = PORT_OCTEON;
p->iotype = UPIO_MEM;
p->regshift = 3; /* I/O addresses are every 8 bytes */
p->uartclk = mips_hpt_frequency;
if (octeon_is_simulation())
/* Make simulator output fast*/
p->uartclk = 115200 * 16;
else
p->uartclk = mips_hpt_frequency;
p->serial_in = octeon_serial_in;
p->serial_out = octeon_serial_out;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/mips/cavium-octeon/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ int prom_putchar(char c)
} while ((lsrval & 0x20) == 0);

/* Write the byte */
cvmx_write_csr(CVMX_MIO_UARTX_THR(octeon_uart), c);
cvmx_write_csr(CVMX_MIO_UARTX_THR(octeon_uart), c & 0xffull);
return 1;
}

Expand Down

0 comments on commit 474139e

Please sign in to comment.