[U-Boot-Users] PATCH: ixp42x UART: support 230400bps, enable RTS

Michael Schwingen michael at schwingen.org
Thu Jan 10 22:59:46 CET 2008


On Thu, Jan 10, 2008 at 11:56:03AM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Hi Michael,
> 
> Could resend this patch?

Sure - this is from my local tree with the lastest changes from master
pulled in, although I don't see much differences - but maybe git does.

Signed-off-by: Michael Schwingen <michael at schwingen.org>

diff --git a/cpu/ixp/serial.c b/cpu/ixp/serial.c
index cf520b6..4549631 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;
 }
 

cu
Michael




More information about the U-Boot mailing list