Thanks Dirk.
arch/arm/mach-omap2/serial.c is the really good starting point for me.
and your additional comments will help me.
O.K. I'll try this, thanks again. 

Jaehoon Lee.




 
  
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

 
 

------- Original Message -------
Sender : JAEHOON LEE<[EMAIL PROTECTED]> DS급(책임연구원)/이미징영상정보사업팀(개발그룹)/SAMSUNG 
TECHWIN CO.,LTD
Date   : 2008-01-21 18:14 (GMT+09:00)
Title  : How to use UART1 and UART2 in GIT kernel??


Hello.

I&#39;m using current GIT kernel.
I&#39;d like to use UART1 and UART2 with current GIT kernel.
I&#39;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.




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

Reply via email to