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: MPC8xx: Using SCM/SCC and standard 16C550 Uarts together...
Date: Wed, 12 Jan 2005 10:51:58 +0100	[thread overview]
Message-ID: <200501121051.58953.david.jander@protonic.nl> (raw)


Hi all,

The situation is:
Our custom board needs to use SCM1 as console, and has an external quad uart 
chip (16C554) connected to the external bus, mapped at 0xf8100000.
I am using the ppclinux_2_4_devel tree from Denx.
I ioremapped that address space, and it seems to work. Right now I don't have 
the daughterboard with the quad-uarts working (as in hardware), so I can't 
fully test that.

The problem is:
Apparently arch/ppc/8xx_io/uart.c doesn't take into account other serial 
drivers that may initialize later, and uses a serial_state struct statically.
Shouldn't this be visible to the outside? Shouldn't there be a global 
serial_state structure somewhere that lists all serial ports?
Right now, I get 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
pty: 256 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ enabled
...
VFS: Mounted root (jffs2 filesystem).
Mounted devfs on /dev
Freeing unused kernel memory: 56k init
------------------------------------

And then nothing more. I assume, at that point init opens /dev/console (ttyS0) 
and that device doesn't exist, since drivers/char/serial.c doesn't detect any 
uart at the moment.
If it did, maybe I would get console stuff out of the first 16c554 port.

Has anybody else tried this?
What would be the right way to fix this?

Greetings,

-- 
David Jander
Protonic Holland.

             reply	other threads:[~2005-01-12  9:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-12  9:51 David Jander [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-01-12  9:59 MPC8xx: Using SCM/SCC and standard 16C550 Uarts together Demke Torsten-atd012
2005-01-12 11:55 ` David Jander
2005-01-12 12:18   ` Yuli Barcohen
2005-01-12 14:46 Demke Torsten-atd012

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=200501121051.58953.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).