Dear uClinux,

I have a Hardware similar to the coyote (ARM IXP4XX) platform with an extra 
16c550 UART.
The UART CS is connected to CS2 of the expansion bus. I have made the following 
modifcations
in the file linux-2.6.25.15/arch/arm/mach-ixp4xx/coyote-setup.c
...
#define IXP4XX_EXTRA_UART_BASE (IXP4XX_EXP_BUS_BASE_PHYS+0x2000000)

static struct resource extra_uart_resource = {
        .start = IXP4XX_EXTRA_UART_BASE,
    .end   = IXP4XX_EXTRA_UART_BASE+0x0fff,
        .flags = IORESOURCE_MEM,
};

static struct plat_serial8250_port extra_uart_data[] = {
    {
        .mapbase    = IXP4XX_EXTRA_UART_BASE,
        .membase    = IXP4XX_EXTRA_UART_BASE, // ????? unsure about the virtual 
addr
        .irq        = IRQ_IXP4XX_GPIO5,
        .flags      = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
        .iotype     = UPIO_MEM,
        .uartclk    = IXP4XX_UART_XTAL,
    },
    { },
};
....
static struct platform_device extra_uart = {
    .name       = "serialextra8250",
    .id         = PLAT8250_DEV_PLATFORM1,
    .dev        = {
        .platform_data = extra_uart_data,
    },
    .num_resources = 1,
    .resource   = &extra_uart_resource,
};
....

I can compile my code but the UART is not detected.

---boot---
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xc8000000 (irq = 15) is a XScale
console [ttyS0] enabled
console [netcon0] enabled
----

I see the region is registered but thats all.
[EMAIL PROTECTED]:/# cat /proc/iomem
00000000-03ffffff : System RAM
  003d3000-005defff : Kernel text
  005e0000-0060a66f : Kernel data
50000000-51ffffff : IXP4XX-Flash.0
  50000000-51ffffff : IXP4XXFlash
52000000-52000fff : serialextra8250.1
c8000000-c800001f : serial
c8001000-c8001fff : serial8250.0
c800b000-c800bfff : pxa2xx-udc

Can anyone point me in the right direction, please. Is the way I use ok?
Is there any example or doc available?


Thank you in Andvance 
Wolf

PS: The CS2 signal is activated in U-Boot and I can see with a small test 
function the UART is present, but only in U-Boot.
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to