[U-Boot] [PATCH 8/8] tegra2: Create SPI/UART switch code

Simon Glass sjg at chromium.org
Thu Oct 20 22:23:33 CEST 2011


Hi Mike,

On Thu, Oct 20, 2011 at 1:09 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Thursday 20 October 2011 15:03:29 Simon Glass wrote:
>> --- a/board/nvidia/seaboard/seaboard.c
>> +++ b/board/nvidia/seaboard/seaboard.c
>>
>> +/* TODO: Remove this code when the SPI switch is working */
>> +#ifndef CONFIG_SPI_UART_SWITCH
>
> eh ?  isn't it working after these patches ?
> -mike
>

No, we need to resolve the NS16550 buffering issue, and also work out
how to get that driver to indicate when it needs to 'claim' the pins
from SPI.

I have a working implementation, and patches for it. Basically I call
uart_enable() from the NS16550 driver before writing any serial data
out or when wanting to read serial data. But it is ugly and I am torn
between simple ugliness and complex pervasiveness.

Advice welcome.

Regards,
Simon


More information about the U-Boot mailing list