From ff36fd8591776405eeb3a086ba1136bf1ece2ffb Mon Sep 17 00:00:00 2001 From: wdenk Date: Sun, 9 Jan 2005 22:28:56 +0000 Subject: * Patch by Leif Lindholm, 23 Sep 2004: add support for the AMD db1550 board * Patch by Travis Sawyer, 15 Sep 2004: Add CONFIG_SERIAL_MULTI support for ppc4xx, update README.serial_multi --- cpu/mips/au1x00_serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpu/mips/au1x00_serial.c') diff --git a/cpu/mips/au1x00_serial.c b/cpu/mips/au1x00_serial.c index 99e2489..ac75da5 100644 --- a/cpu/mips/au1x00_serial.c +++ b/cpu/mips/au1x00_serial.c @@ -71,8 +71,8 @@ void serial_setbrg (void) volatile u32 *uart_clk = (volatile u32*)(UART0_ADDR+UART_CLK); volatile u32 *uart_lcr = (volatile u32*)(UART0_ADDR+UART_LCR); - /* Set baudrate to 115200 */ - *uart_clk = 0x36; + /* Set baudrate - FIXME for bus speeds != CPU/2 */ + *uart_clk = ((CFG_HZ/(CONFIG_BAUDRATE * 64))); /* Set parity, stop bits and word length to 8N1 */ *uart_lcr = UART_LCR_WLEN8; -- cgit v1.1