]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
IXP: enable RTS
authorMichael Schwingen <michael@schwingen.org>
Thu, 10 Jan 2008 13:59:46 +0000 (14:59 +0100)
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 18 Jan 2008 00:00:02 +0000 (01:00 +0100)
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>
cpu/ixp/serial.c

index cf520b699ed55a2b56ed8fd1fee14b5ae981ad24..45496318a82eb224996c4c0bac1a84347114c773 100644 (file)
@@ -58,7 +58,11 @@ void serial_setbrg (void)
        DLL(uart) = quot & 0xff;
        DLH(uart) = quot >> 8;
        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;
 }