[PATCH 1/1] amba: pl011: set RTS during initialization

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Wed Feb 13 10:24:45 EST 2013


From: Rob Herring <rob.herring at calxeda.com>

RTS is an output. Either flow control is used and you care about the state or
it is not used and you don't care. So setting it to active does no harm in
either case. This is inline with what Linux does.

Mandatory for Highbank as example

Signed-off-by: Rob Herring <rob.herring at calxeda.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 drivers/serial/amba-pl011.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/serial/amba-pl011.c b/drivers/serial/amba-pl011.c
index 58c69e5..0e07588 100644
--- a/drivers/serial/amba-pl011.c
+++ b/drivers/serial/amba-pl011.c
@@ -175,7 +175,7 @@ int pl011_init_port (struct console_device *cdev)
 	/*
 	 ** Finally, enable the UART
 	 */
-	writel((UART01x_CR_UARTEN | UART011_CR_TXE | UART011_CR_RXE),
+	writel((UART01x_CR_UARTEN | UART011_CR_TXE | UART011_CR_RXE | UART011_CR_RTS),
 	       uart->base + UART011_CR);
 
 	return 0;
-- 
1.7.10.4




More information about the barebox mailing list