From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Schwingen Date: Sun, 9 Dec 2007 18:00:35 +0100 Subject: [U-Boot-Users] PATCH: ixp42x UART: support 230400bps, enable RTS In-Reply-To: <20071208153245.GA5332@game.jcrosoft.org> References: <20071110154737.GA11316@discworld.dascon.de> <20071208153245.GA5332@game.jcrosoft.org> Message-ID: <20071209170035.GA4164@discworld.dascon.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 08, 2007 at 04:32:45PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > 2 points about this patch > > 1) I will send a patch to support all baud rates for ipx42x, ixp45x and ixp46x > > 2) Cou you make the RTS part configurable by a MACRO like > CONFIG_SERIAL_RTS? Okay - how about this: Signed-off-by: Michael Schwingen diff --git a/cpu/ixp/serial.c b/cpu/ixp/serial.c index 62b1f24..190641a 100644 --- a/cpu/ixp/serial.c +++ b/cpu/ixp/serial.c @@ -63,8 +63,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; } This also adds code to initialize RTS to off in case you did not set CONFIG_SERIAL_RTS_ACTIVE. cu Michael