From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 10 Jan 2008 11:56:03 +0100 Subject: [U-Boot-Users] PATCH: ixp42x UART: support 230400bps, enable RTS In-Reply-To: <20071209170035.GA4164@discworld.dascon.de> References: <20071110154737.GA11316@discworld.dascon.de> <20071208153245.GA5332@game.jcrosoft.org> <20071209170035.GA4164@discworld.dascon.de> Message-ID: <20080110105603.GB18611@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 18:00 Sun 09 Dec , Michael Schwingen wrote: > 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. Hi Michael, Could resend this patch? Best Regards, J.