All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Schwingen <rincewind@discworld.dascon.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PATCH: ixp42x UART: support 230400bps, enable	RTS
Date: Sun, 9 Dec 2007 18:00:35 +0100	[thread overview]
Message-ID: <20071209170035.GA4164@discworld.dascon.de> (raw)
In-Reply-To: <20071208153245.GA5332@game.jcrosoft.org>

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 <michael@schwingen.org>

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

  parent reply	other threads:[~2007-12-09 17:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-10 15:47 [U-Boot-Users] PATCH: ixp42x UART: support 230400bps, enable RTS Michael Schwingen
2007-12-08 15:32 ` Jean-Christophe PLAGNIOL-VILLARD
2007-12-08 15:35   ` [U-Boot-Users] [PATCH] IXP: Add full baud-rate support for ixp42x, ixp45x and ixp46x Jean-Christophe PLAGNIOL-VILLARD
2007-12-08 16:13     ` Stefan Roese
2007-12-08 16:58     ` Wolfgang Denk
2007-12-08 17:03       ` Jean-Christophe PLAGNIOL-VILLARD
2007-12-08 22:37   ` [U-Boot-Users] PATCH: ixp42x UART: support 230400bps, enable RTS Michael Schwingen
2007-12-09  8:40     ` Jean-Christophe PLAGNIOL-VILLARD
2007-12-09 15:58       ` Michael Schwingen
2007-12-09 17:00   ` Michael Schwingen [this message]
2008-01-10 10:56     ` Jean-Christophe PLAGNIOL-VILLARD
2008-01-10 21:59       ` Michael Schwingen
2008-01-11  0:25         ` Jean-Christophe PLAGNIOL-VILLARD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071209170035.GA4164@discworld.dascon.de \
    --to=rincewind@discworld.dascon.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.