All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] PATCH: ixp42x UART: support 230400bps, enable	RTS
Date: Sat, 8 Dec 2007 16:32:45 +0100	[thread overview]
Message-ID: <20071208153245.GA5332@game.jcrosoft.org> (raw)
In-Reply-To: <20071110154737.GA11316@discworld.dascon.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 <michael@schwingen.org>
> 
> 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.

  reply	other threads:[~2007-12-08 15:32 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 [this message]
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
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=20071208153245.GA5332@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --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.