JAEHOON LEE wrote:
> I'm using current GIT kernel.
> I'd like to use UART1 and UART2 with current GIT kernel.
> I've searched and found some informations about using UART1 and UART2 based 
> on MVISTA 2.6.10 kernel.
> Is there any one who can use UART1 and UART2 based on current GIT kerenl?
> If so, Could you please let us know or post your patch in this mailing list?
> Thanks all.

Sorry if I misunderstood you, but UART0 (starting with 0 to count
UARTs) is supported out of the box by GIT kernel. It's usable from
user space using /dev/ttyS0.

Looks like to use UART1 and UART2 you have to extend
arch/arm/mach-davinci/serial.c. This should be easy taking e.g.
arch/arm/mach-omap2/serial.c as reference for the basic format and the
DaVinci manuals for the HW details (base address, interrupt e.g.).

Is this what you are interested in? Which information do you refer to
above regarding MVISTA 2.6.10?

E.g. UART1 will need an additional

    {
        .membase  = (void __iomem *)IO_ADDRESS(DAVINCI_UART1_BASE),
        .mapbase  = (unsigned long)DAVINCI_UART1_BASE,
        .irq      = IRQ_UARTINT1,
        .flags    = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
        .iotype   = UPIO_MEM,
        .regshift = 2,
        .uartclk  = 27000000,
    },

and for UART2 anything like

    {
        .membase  = (void __iomem *)IO_ADDRESS(DAVINCI_UART2_BASE),
        .mapbase  = (unsigned long)DAVINCI_UART2_BASE,
        .irq      = IRQ_UARTINT2,
        .flags    = UPF_BOOT_AUTOCONF | UPF_SKIP_TEST,
        .iotype   = UPIO_MEM,
        .regshift = 2,
        .uartclk  = 27000000,
    },

should do the job.

Regards

Dirk
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to