aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Housh <joshua.housh@calxeda.com>2012-11-09 10:01:11 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-12-06 13:51:53 -0700
commit2af59c1c9412bafd441a8e472585541a3a36ae4e (patch)
tree6bdccd987f85a72c520c5bb40a259755778c6936
parent035faf32a5cc8eb5c5880bc458d61834a0d5e4df (diff)
downloadu-boot-linaro-next-2af59c1c9412bafd441a8e472585541a3a36ae4e.tar.gz
serial_pl011: Set RTS during initialization
If the pl011 is connected to another device which has hardware flow-control on, characters are never received by the pl011. Asserting RTS when flow-control is off will have no effect. Signed-off-by: Joshua Housh <joshua.housh@calxeda.com>
-rw-r--r--drivers/serial/serial_pl01x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c
index b331be7..dfdba9f 100644
--- a/drivers/serial/serial_pl01x.c
+++ b/drivers/serial/serial_pl01x.c
@@ -163,8 +163,8 @@ static int pl01x_serial_init(void)
}
#endif
/* Finally, enable the UART */
- writel(UART_PL011_CR_UARTEN | UART_PL011_CR_TXE | UART_PL011_CR_RXE,
- &regs->pl011_cr);
+ writel(UART_PL011_CR_UARTEN | UART_PL011_CR_TXE | UART_PL011_CR_RXE |
+ UART_PL011_CR_RTS, &regs->pl011_cr);
return 0;
}