linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: David Jander <david.jander@protonic.nl>
To: linuxppc-embedded@ozlabs.org
Subject: SMC/SCC uart problem with MPC852T
Date: Thu, 30 Dec 2004 12:46:48 +0100	[thread overview]
Message-ID: <200412301246.48870.david.jander@protonic.nl> (raw)


Hi,

I have been searching for a way to do the BRG routing to SCC3 and SCC4 on the 
MPC852T, so that BGR3 is routed to SCC3 and SMC1 and BRG4 to SCC4. I could 
not find anything in the kernel (CVS linux_2_4_devel from DENX) to do this.
I think I also need a special ucode-patch, but I don't know where to look for 
it either.
Right now SMC1 works as serial console (115200 baud).
The kernel says this:
...
CPM UART driver version 0.04
ttyS0 at 0x0280 is on SMC1 using BRG1
ttyS1 at 0x0200 is on SCC3 using BRG2
ttyS2 at 0x0300 is on SCC4 using BRG3
...
IMHO this can't be right. At least not for the MPC852T.
If I connect a device to ttyS1 or ttyS2, it seems to work OK though, but if I 
connect the respective RX pin directly to the corresponding TX pin, strange 
things begin to happen. /proc/interrupt counts skyrocket, and I get a lot of 
repeated data back from the serial port. It looks like as if CPM buffers 
overlap or something like that.

Searching on Google I was able to find these boot-messages from someone using 
an MPC852T:

....
CPM UART driver version 0.03
ttyS0 at 0x0280 is on SMC1 using BRG3 - SMC1/SCC3/I2C/SPI Patch enabled
ttyS1 at 0x0200 is on SCC3 using BRG3
ttyS2 at 0x0300 is on SCC4 using BRG4
....

That looks a lot better, but I wonder how he accomplished this? What's that 
"SMC1/SCC3/I2C/SPI Patch" ? Where do I get it from?

Greetings,

-- 
David Jander
Protonic Holland.

             reply	other threads:[~2004-12-30 12:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-30 11:46 David Jander [this message]
2004-12-30 15:30 ` SMC/SCC uart problem with MPC852T Dan Malek
2004-12-30 20:35   ` MPC5200 PCI byte-swapping Mark Chambers
2005-01-01 22:39     ` Sylvain Munaut
2005-01-03 14:07       ` Mark Chambers
2005-01-03 16:47         ` Sylvain Munaut
2005-01-04  9:37           ` Stefan Nickl
  -- strict thread matches above, loose matches on Subject: below --
2004-12-30 11:59 SMC/SCC uart problem with MPC852T David Jander

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=200412301246.48870.david.jander@protonic.nl \
    --to=david.jander@protonic.nl \
    --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).