diff options
| author | Joshua Housh <joshua.housh@calxeda.com> | 2012-12-02 17:09:26 +0000 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2012-12-07 08:47:52 -0700 | 
| commit | 10501df05e2d2eef501c92483c134d5f7c9da150 (patch) | |
| tree | b3034cd0b6d2da4cfa7da8df43e2b0631a31b565 | |
| parent | fcdde04c20c51f97be96bc4c50a090639fba28f7 (diff) | |
| download | olio-uboot-2014.01-10501df05e2d2eef501c92483c134d5f7c9da150.tar.xz olio-uboot-2014.01-10501df05e2d2eef501c92483c134d5f7c9da150.zip | |
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.
This is in line with how Linux behaves.
Signed-off-by: Joshua Housh <joshua.housh@calxeda.com>
Tested-by: Marek Vasut <marex@denx.de>
| -rw-r--r-- | drivers/serial/serial_pl01x.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index b331be794..dfdba9f64 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, -	       ®s->pl011_cr); +	writel(UART_PL011_CR_UARTEN | UART_PL011_CR_TXE | UART_PL011_CR_RXE | +	       UART_PL011_CR_RTS, ®s->pl011_cr);  	return 0;  } |