Skip to contentSkip to conversation

console on SCC1 on 8260

DISCUSSION Wojciech Kromer 4 participants 4 messages Apr 25, 2002 – Apr 29, 2002

lore
Share & tools
lore
#0 lore raw

Huh, I've just discovered that arch/ppc/8260_io/uart.c does not support console on SCC1!
Anyone has such version of this driver?

--
* * * * * * * * * * * *
* per pedes ad astra! *
* * * * * * * * * * * * mailto:[email protected]

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 3 lines

Huh, I've just discovered that arch/ppc/8260_io/uart.c does not support console on SCC1! Anyone has such version of this driver?

See:

ftp://ftp.denx.de/pub/LinuxPPC/usr/src/linux-2.4.4-2002-03-21.tar.bz2

------------------\\----------------------\\----------------------------

Jon Diekema        |                       | Smiths Industries
(616) 241-8310     |                       | 3290 Patterson Avenue, SE
[email protected] \\                      \\  Grand Rapids, MI 49512-1991

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Wojciech Kromer
Quoted 4 lines · In message <[email protected]> you wrote:

Huh, I've just discovered that arch/ppc/8260_io/uart.c does not support
console on SCC1!
Anyone has such version of this driver?

In all such situation just try the version on our FTP server :-)

For instance, the CPU86 configuration uses SCC1 for console.

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] One essential to success is that you desire be an all-obsessing one, your thoughts and aims be co-ordinated, and your energy be concentra- ted and applied without letup.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#3 lore raw
In reply to Wojciech Kromer
Quoted 4 lines · you

Huh, I've just discovered that arch/ppc/8260_io/uart.c does not support
console on SCC1!
Anyone has such version of this driver?

Sure does work for us here. We had to apply the following patch though:

arch/ppc/8260_io/uart.c Fri Dec 21 15:57:17 2001 renamed from arch/ppc/8260_io/uart.c Fri Dec 21 15:57:14 2001 +1 -0
@@ -162,6 +162,7 @@
 #else /* SCC_CONSOLE */
 #define SCC_NUM_BASE   0       /* SCC base tty "number" */
 #define SCC_IDX_BASE   0       /* table index */
+#define PORT_NUM(P)    (((P) < (SCC_NUM_BASE)) ? (P) : (P)-(SCC_NUM_BASE))
 static struct serial_state rs_table[] = {
        /* UART CLK   PORT          IRQ      FLAGS  NUM   */
 

Regards,
Marius.

--

Marius Groeger        SYSGO Real-Time Solutions GmbH    www.sysgo.de
Software Engineering  Embedded and Real-Time Software   www.osek.de
mgroeger @ sysgo de   Germany                           www.elinos.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/