diff options
author | Michael Schwingen <michael@schwingen.org> | 2008-01-10 14:59:46 +0100 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2008-01-18 01:00:02 +0100 |
commit | 96bd462942022e4569b582c072a0ed26de1cd19b (patch) | |
tree | e0384366afee3d87e9beb15e0177a2f7b55eb1ba /cpu | |
parent | a1cf027a08f9dc1c0e769499e6f4fbddcf9cab93 (diff) |
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>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/ixp/serial.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpu/ixp/serial.c b/cpu/ixp/serial.c index cf520b699ed..45496318a82 100644 --- a/cpu/ixp/serial.c +++ b/cpu/ixp/serial.c @@ -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; } |