Browse Source

IXP: enable RTS

enables the RTS signal with CONFIG_SERIAL_RTS_ACTIVE.
No handshaking is done, but the active RTS signal allows to
connect to the target using a PC which is using RTS/CTS
handshake, and does no harm if the PC is set to ignore RTS.

Signed-off-by: Michael Schwingen <michael@schwingen.org>
Michael Schwingen 17 years ago
parent
commit
96bd462942
1 changed files with 5 additions and 1 deletions
  1. 5 1
      cpu/ixp/serial.c

+ 5 - 1
cpu/ixp/serial.c

@@ -58,7 +58,11 @@ void serial_setbrg (void)
 	DLL(uart) = quot & 0xff;
 	DLL(uart) = quot & 0xff;
 	DLH(uart) = quot >> 8;
 	DLH(uart) = quot >> 8;
 	LCR(uart) = LCR_WLS0 | LCR_WLS1;
 	LCR(uart) = LCR_WLS0 | LCR_WLS1;
-
+#ifdef CONFIG_SERIAL_RTS_ACTIVE
+	MCR(uart) = MCR_RTS;				/* set RTS active */
+#else
+	MCR(uart) = 0;					/* set RTS inactive */
+#endif
 	IER(uart) = IER_UUE;
 	IER(uart) = IER_UUE;
 }
 }