aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-08-20 00:27:12 +0200
committerHarald Welte <laforge@gnumonks.org>2012-08-20 00:27:12 +0200
commit7039377361533d701fd6271bf6c268906da278b1 (patch)
tree45c7d279387eb1efaad040be17f2fbb23e076aa2
parent9b86d3e8359e45a8e47e643b6099bc4f502c2c3c (diff)
SPI UART: use 9600 bps for now
-rw-r--r--src/cc32/uart_sc16is740.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cc32/uart_sc16is740.c b/src/cc32/uart_sc16is740.c
index e5ddbd7..a14e6ad 100644
--- a/src/cc32/uart_sc16is740.c
+++ b/src/cc32/uart_sc16is740.c
@@ -88,8 +88,8 @@ void uart_sc16is740_init()
reg_write(LCR, (3 << 0) | (0 << 2));
/* set LCR[7] = 1 (divisor latch) */
reg_write(LCR, reg_read(LCR) | 0x80);
- /* baud rate generator for 115200 */
- reg_write(DLL, 1);
+ /* baud rate generator for 9600 */
+ reg_write(DLL, 12);
reg_write(DLH, 0);
/* clear LCR[7] = 0 (divisor latch) */
reg_write(LCR, reg_read(LCR) & ~0x80);