From: Marco Schramel <Schramel.Linux@go.bartec.de>
To: "PPC_LINUX" <linuxppc-embedded@ozlabs.org>
Subject: CPM uart
Date: Thu, 14 Apr 2005 09:26:01 +0200 [thread overview]
Message-ID: <200504140926.01775.Schramel.Linux@go.bartec.de> (raw)
Hi,
on my target (MPC8270, 2.4.25) SCC1, SCC2 and SCC3 will work fine as ttyS0 .. ttyS2 with console at ttyS0.
It works with this code in arch/ppc/8260_io/uart.c
#define CONFIG_SERIAL_CONSOLE_PORT 0
#define SCC_NUM_BASE 0 /* SCC base tty "number" */
#define SCC_IDX_BASE 0 /* table index */
static struct serial_state rs_table[] = {
/* UART CLK PORT IRQ FLAGS NUM */
{ 0, 0, PROFF_SCC1, SIU_INT_SCC1, 0, SCC_NUM_BASE}, /* SCC1 ttyS0 */
{ 0, 0, PROFF_SCC2, SIU_INT_SCC2, 0, SCC_NUM_BASE + 1}, /* SCC2 ttyS1 */
{ 0, 0, PROFF_SCC3, SIU_INT_SCC3, 0, SCC_NUM_BASE +2}, /* SCC3 ttyS2 */
Now i need the two SMC's.
I changed the source to:
#define CONFIG_SERIAL_CONSOLE_PORT 2
#define SCC_NUM_BASE 2 /* SCC base tty "number" */
#define SCC_IDX_BASE 2 /* table index */
static struct serial_state rs_table[] = {
/* UART CLK PORT IRQ FLAGS NUM */
{ 0, 0, PROFF_SMC1, SIU_INT_SMC1, 0, 0}, /* SMC1 ttyS0 */
{ 0, 0, PROFF_SMC2, SIU_INT_SMC2, 0, 1}, /* SMC2 ttyS1 */
{ 0, 0, PROFF_SCC1, SIU_INT_SCC1, 0, SCC_NUM_BASE}, /* SCC1 ttyS2 */
{ 0, 0, PROFF_SCC2, SIU_INT_SCC2, 0, SCC_NUM_BASE + 1}, /* SCC2 ttyS3 */
{ 0, 0, PROFF_SCC3, SIU_INT_SCC3, 0, SCC_NUM_BASE + 2}, /* SCC3 ttyS4 */
and passed the bootloader the correct console=ttyS2.
During booting kernel hangs on initializing ttyS2 forever.
What could be wrong ? I only changed the io port configuration in the init function.
Thanks in advance
Marco
---------
Marco Schramel
next reply other threads:[~2005-04-14 6:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-14 7:26 Marco Schramel [this message]
2005-04-14 12:01 ` CPM uart Dan Malek
2005-04-14 12:54 ` Marco Schramel
2005-04-14 15:51 ` Dan Malek
2005-04-14 23:24 ` Ricardo Scop
2005-04-15 2:50 ` Dan Malek
2005-04-15 8:38 ` Marco Schramel
[not found] <1628E43D99629C46988BE46087A3FBB9205B50@ep-01.EmbeddedPlanet.local>
2005-04-14 13:34 ` Marco Schramel
2005-04-14 13:55 ` Dan Malek
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=200504140926.01775.Schramel.Linux@go.bartec.de \
--to=schramel.linux@go.bartec.de \
--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).