Skip to contentSkip to conversation

SMC as UART problem on mpc8xx

DISCUSSION a b 2 participants 2 messages Feb 1, 2007

lore
Share & tools
lore

a b

author
#0 lore raw

Hi,
I have mpc8xx where I would like the following configuration:
- SCC1 as system console (works fine)
- SMC1-2 as UART (doesn\'t work)

I use linux 2.6.16.20 with backward patch from linux-2.6.19.2 for SMCs. My only problem is that even I can see cpm_uart registered for IRQ 20 (for SMC1) I never get interrupt even I do e.g. \"echo 123 > /dev/ttyCPM\".

here is a short extract from /proc/interrupts:

 20:          0   CPM       Edge      cpm_uart  <--SMC1
 21:       7546   CPM       Edge      SPI
 46:         20   CPM       Edge      cpm_uart  <-- SCC1 (console)

here is a short extract from /proc/tty/driver/ttyCPM:
serinfo:1.0 driver revision:
0: uart:CPM UART mmio:0xFFF00A80 irq:20 tx:14 rx:0 RTS|CTS|DTR|DSR|CD 1: uart:CPM UART mmio:0xFFF00A90 irq:19 tx:0 rx:0 CTS|DSR|CD 2: uart:CPM UART mmio:0xFFF00A00 irq:46 tx:3038 rx:46 RTS|CTS|DTR|DSR|CD

Can anybody help me to get SMCs working?

thnx,
Ladislav.

__________
http://chat.post.sk - zachatujte si s priatelmi na IRC.POST.SK

#1 lore raw
Quoted 14 lines · On 01 Feb 2007 17:10:31 +0100 (CET) a b <[email protected]> wrote:

Hi,
I have mpc8xx where I would like the following configuration:
- SCC1 as system console (works fine)
- SMC1-2 as UART (doesn\'t work)

I use linux 2.6.16.20 with backward patch from linux-2.6.19.2 for SMCs. My only problem is that even I can see cpm_uart registered for IRQ 20 (for SMC1) I never get interrupt even I do e.g. \"echo 123 > /dev/ttyCPM\".

here is a short extract from /proc/interrupts:

 20:          0   CPM       Edge      cpm_uart  <--SMC1
 21:       7546   CPM       Edge      SPI
 46:         20   CPM       Edge      cpm_uart  <-- SCC1 (console)
Quoted 9 lines

here is a short extract from /proc/tty/driver/ttyCPM:
serinfo:1.0 driver revision:
0: uart:CPM UART mmio:0xFFF00A80 irq:20 tx:14 rx:0 RTS|CTS|DTR|DSR|CD 1: uart:CPM UART mmio:0xFFF00A90 irq:19 tx:0 rx:0 CTS|DSR|CD 2: uart:CPM UART mmio:0xFFF00A00 irq:46 tx:3038 rx:46 RTS|CTS|DTR|DSR|CD

Can anybody help me to get SMCs working?

Check IO ports? IIRC, in 8xx some SoC devices could not work simultaneously because they
share some GPIO pins. In any case, if something does not function with CPM UART, IOports stuff is the first thing to check.

Signature · 2 lines
Sincerely, 
Vitaly