From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 8 Dec 2007 16:32:45 +0100 Subject: [U-Boot-Users] PATCH: ixp42x UART: support 230400bps, enable RTS In-Reply-To: <20071110154737.GA11316@discworld.dascon.de> References: <20071110154737.GA11316@discworld.dascon.de> Message-ID: <20071208153245.GA5332@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 16:47 Sat 10 Nov , Michael Schwingen wrote: > Hi, > > the following patch > - adds support for 230400bps > - enables the RTS signal. 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 > > diff --git a/cpu/ixp/serial.c b/cpu/ixp/serial.c > index 2015958..e0f56fe 100644 > --- a/cpu/ixp/serial.c > +++ b/cpu/ixp/serial.c > @@ -50,6 +50,8 @@ void serial_setbrg (void) > quot = 16; > else if (gd->baudrate == 115200) > quot = 8; > + else if (gd->baudrate == 230400) > + quot = 4; > else > hang (); > > @@ -61,6 +63,7 @@ void serial_setbrg (void) > DLL(uart) = quot & 0xff; > DLH(uart) = quot >> 8; > LCR(uart) = LCR_WLS0 | LCR_WLS1; > + MCR(uart) = MCR_RTS; /* set RTS active */ > > IER(uart) = IER_UUE; > } Hi, 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? Best Regards, J.