PCMCIA Modem/Serial Cards and MPC8xx?

Steven Scholz steven.scholz at imc-berlin.de
Wed Aug 27 21:12:09 EST 2003

Dear Wolfgang,

 >>Did you have MPC8xx uarts _and_ a standard 16550 uart _and_ PCMCIA?
 > Yes, we support MPX8xx UART, standard serial driver  including  16550
 > UART,  and  PCMCIA.  See our linux-2.4 kernel tree. It should be very
 > easy to extract the relevant patch and  to  apply  it  to  any  other
 > kernel.

I am getting closer though:

I changed
#define RS_TABLE_SIZE 3

and added a dummy line in my dab4k_serial.h:

            iomem_base: (u8 *) UARTA_ADDR, \
            iomem_reg_shift:0, \
            io_type: SERIAL_IO_MEM }, \
            iomem_base: (u8 *) UARTB_ADDR, \
            iomem_reg_shift:0, \
            io_type: SERIAL_IO_MEM }, \
          { 0, 0, 0, 0, STD_COM_FLAG}

Now I do get

CPM UART driver version 0.04
ttyS0 on SMC1 at 0x0280, BRG1
ttyS1 on SMC2 at 0x0380, BRG2
ttyS2 on SCC1 at 0x0000, BRG3

Serial driver version 5.05c (2001-07-08) with SHARE_IRQ enabled
ttyS00 at 0xc3071000 (irq = 6) is a ST16654
ttyS01 at 0xc3071080 (irq = 8) is a ST16654

And PCMCIA CS tells me

cardmgr[80]: socket 0: Serial or Modem
cardmgr[80]: BEEP_OK
cardmgr[80]:   product info: "Intelligent", "PCMCIA FAX+MODEM"
cardmgr[80]:   manfid: 0x0200, 0x0001  function: 2 (serial)
cardmgr[80]: executing: 'modprobe serial_cs'
cardmgr[80]: + Using /lib/modules/2.4.20/pcmcia/pcmcia_core.o
cardmgr[80]: + Using /lib/modules/2.4.20/pcmcia/ds.o
cardmgr[80]: + Using /lib/modules/2.4.20/pcmcia/serial_cs.o
ttyS02 at port 0x03f8 (irq = 9) is a 16550A
cardmgr[80]: executing: './serial start ttyS2'
cardmgr[80]: + Default modem setup
cardmgr[80]: BEEP_OK
cardmgr[80]: BEEP_OK

So why is it ttyS02. Why is it ./serial start ttyS2?
It's also ttyS2 if I don't enable SCC1 as UART!

 > See http://www.denx.de/twiki/bin/view/DULG/KernelConfigurationForPCMCIA

I read this. But where does the MAJOR number 240 come from???


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

More information about the Linuxppc-embedded mailing list