linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Mathieu Deschamps <mathieu.deschamps@com2gether.net>
To: Laurent Pinchart <laurent.pinchart@tbox.biz>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: MPC8260 SCC UART hardware flow control
Date: Thu, 20 Jul 2006 10:18:35 +0200	[thread overview]
Message-ID: <200607201018.13445.mathieu.deschamps@com2gether.net> (raw)
In-Reply-To: <200607191718.00328.laurent.pinchart@tbox.biz>

Hi Laurent,

On Wednesday 19 July 2006 17:18, Laurent Pinchart wrote:
> Hi everybody,
>
> I was wondering if anyone had implemented hardware flow control support in
> the cpm_uart driver. If not, I would appreciate pointers regarding how to
> do so.
>
> Best regards,
>
> Laurent Pinchart
>

I had. PQ2 CPM is a dedicated part which handles this aspect for you via
its microcode. This also means you can't play with it the old way and making 
your own HHS with a CD/DSR :). Back to seriousness, rather this means you 
needn't adding modem signal handling in cpm_uart driver. So don't define 
modem_something that's an ancient reliq from the times, I guess, no CPM was 
put auxillary.

So how to tell CPM to cope with HHS ? Simple, you "just" have to put SCC's 
Dedicated pins the right way which depends on your board type. Remember you 
can't do any HHS with SMC. Refer to Dedicated Pins chapter in the litterature 
[41.4.2]. Also take a look at SCC GSMR register [20.8] and to SCC UART mode 
PSMR register [21-14] to maybe use protocol specificities. 

When you'll have your kernel ready, you would do probably something like :
	stty -F $port crtscts $SPEED

As Wolfgang said HHS works for DTE-DCE only (roughly but visually you must 
have plugs opposite gender on both ends), trying DTE-DTE HHS dialog is bound 
to failure despite time spend on it.

Cdy,
 
Mathieu Deschamps
Com2gether Design Center
Electronic and Embedded Engineering Services
www.com2gether.net 

  parent reply	other threads:[~2006-07-20  8:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-19 15:18 MPC8260 SCC UART hardware flow control Laurent Pinchart
2006-07-19 18:37 ` Wolfgang Denk
2006-07-20 14:30   ` Laurent Pinchart
2006-07-20  8:18 ` Mathieu Deschamps [this message]
2006-07-20 14:32   ` Laurent Pinchart

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=200607201018.13445.mathieu.deschamps@com2gether.net \
    --to=mathieu.deschamps@com2gether.net \
    --cc=laurent.pinchart@tbox.biz \
    --cc=linuxppc-embedded@ozlabs.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).