On Tuesday 31 August 2010 03:42:56 pm Nori, Sekhar wrote:
> Hi Caglar,
>
> On Tue, Aug 31, 2010 at 17:03:08, Caglar Akyuz wrote:
> > > > +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.
>
> The UART clock is enabled by arch/arm/mach-davinci/serial.c. Without that
> the 8250.c will not be able to recognize the UART.
>
> Showing only one UART to Linux should help. That should be possible by
> editing da8xx_serial_pdata[]. But that will affect all boards. So, the
> serial platform data would need to be made board specific.
>
> However, I don't think this error alone can cause lock-up. Did you also
> change the console= kernel parameter to ttyS0?
>
Of course not! Thanks for reminding. Now it is working.
I think Hawkboard should do the same as EVM wrt uart init for userspace
compatibility.
Best Regards,
Caglar
> Thanks,
> Sekhar
>
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source