On Tuesday 31 August 2010 12:07:33 pm Sergei Shtylyov wrote:
> Victor Rodriguez wrote:
> > Basic support for Hawkboard OMAPL138 just UART cominication is included
> >
> > Signed-off-by: Victor Rodriguez <[email protected]>
> >
> > Notes: This patch is checked with
> > 0a50e05b20f3c6af67656303bdb3661a2541ce03 from Kernel development tree for
> > TI DaVinci family of processors
> >
> >        This patch works with basic da8xx_omapl_defconfig, it just have
> > basic support
> >        for UART console
> > ---
> >  arch/arm/mach-davinci/Kconfig                   |    9 +++
> >  arch/arm/mach-davinci/Makefile                  |    1 +
> >  arch/arm/mach-davinci/board-da850-hawk.c        |   69
> > +++++++++++++++++++++++ arch/arm/mach-davinci/include/mach/uncompress.h |
> >    1 +
> >  4 files changed, 80 insertions(+), 0 deletions(-)
> >  create mode 100644 arch/arm/mach-davinci/board-da850-hawk.c
> >
> > diff --git a/arch/arm/mach-davinci/Kconfig
> > b/arch/arm/mach-davinci/Kconfig index 2bf03e9..fd8a11c 100644
> > --- a/arch/arm/mach-davinci/Kconfig
> > +++ b/arch/arm/mach-davinci/Kconfig
> > @@ -185,6 +185,15 @@ config MACH_TNETV107X
> >        help
> >          Say Y here to select the TI TNETV107X Evaluation Module.
> >
> > +config MACH_OMAPL138_HAWKBOARD
> > +       bool "TI DA850/OMAP-L138/AM18xx Hawkboard(.org) Platform"
> > +       default ARCH_DAVINCI_DA850
> 
>     Only EVM boards are enabled by default.
> 
> > +       depends on ARCH_DAVINCI_DA850
> > +       help
> > +         Say Y here to select the TI DA850/OMAP-L138/AM18xx Hawkboard.
> > +         Information of this board may be found at
> > +         http://www.hawkboard.org/
> > +
> >  config DAVINCI_MUX
> >        bool "DAVINCI multiplexing support"
> >        depends on ARCH_DAVINCI
> 
> [...]
> 
> > diff --git a/arch/arm/mach-davinci/board-da850-hawk.c
> > b/arch/arm/mach-davinci/board-da850-hawk.c
> > new file mode 100644
> > index 0000000..e34bcbb
> > --- /dev/null
> > +++ b/arch/arm/mach-davinci/board-da850-hawk.c
> > @@ -0,0 +1,69 @@
> > +/*
> > + * Hawkboar.org based on TI's OMAP-L138 Platform
> 
>     Hawkboard.org?
> 
> > + *
> > + * Initial code: Syed Mohammed Khasim
> > + *
> > + * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com
> > + *
> > + * Derived from: arch/arm/mach-davinci/board-da850-evm.c
> > + * Original Copyrights follow:
> > + *
> > + * 2007, 2009 (c) MontaVista Software, Inc. This file is licensed under
> 
>     MV didn't write any code in board-da850-evm.c, so the original
>  copyright is wrong.
> 
> > + * the terms of the GNU General Public License version 2. This program
> > + * is licensed "as is" without any warranty of any kind, whether express
> > + * or implied.
> > + */
> > +#include <linux/kernel.h>
> > +#include <linux/init.h>
> > +#include <linux/console.h>
> > +#include <linux/gpio.h>
> > +
> > +#include <asm/mach-types.h>
> > +#include <asm/mach/arch.h>
> > +
> > +#include <mach/cp_intc.h>
> > +#include <mach/da8xx.h>
> > +
> > +
> > +
> 
>     Too many empty lines?
> 
> > +static struct davinci_uart_config omapl138_hawk_uart_config __initdata =
> > { +       .enabled_uarts = 0x7,
> 
>     Why enable URARTs 0 and 1 if you shut down them below?
> 

This is the same method used in 'board-da850-evm.c'.  I tried making this 
0x4 but kernel locked-up. I see following on the kernel log:

 Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled                       
                                                                                
                     
 serial8250 serial8250.0: unable to register port at index 0 (IO0 MEM1c42000 
IRQ25): -22                                                                     
                        
 serial8250 serial8250.0: unable to register port at index 1 (IO0 MEM1d0c000 
IRQ53): -22                                                                     
                        
 serial8250.0: ttyS0 at MMIO 0x1d0d000 (irq = 61) is a 16550A

Maybe someone can explain the root cause.

Best Regards,
Caglar

> > +};
> > +
> > +static __init void omapl138_hawk_init(void)
> > +{
> > +
> > +       davinci_serial_init(&omapl138_hawk_uart_config);
> > +
> > +       /*
> > +        * shut down uart 0 and 1; they are not used on the board and
> > +        * accessing them causes endless "too much work in irq53"
> > messages +        * with arago fs
> > +        */
> > +       __raw_writel(0, IO_ADDRESS(DA8XX_UART1_BASE) + 0x30);
> > +       __raw_writel(0, IO_ADDRESS(DA8XX_UART0_BASE) + 0x30);
> > +
> > +}
> 
> WBR, Sergei
> 
> _______________________________________________
> Davinci-linux-open-source mailing list
> [email protected]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> 
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to