[U-Boot] SPI - cs validity

Ran Shalit ranshalit at gmail.com
Wed Apr 6 11:32:22 CEST 2011


> It seems that currently both atmel & davinci boards supports only 1 spi
> instance at a time.
>
> In order to support different spi instances,
> In case of atmel declare SPIx_BASE as required & set CONFIG_DEFAULT_SPI_BUS
> to required bus
> In case of davinci set CONFIG_SYS_SPI_BASE to base address of required spi
> instance
>
> Also, spi_cs_is_valid() function needs to be updated to support different
> spi instances. spi_cs_is_valid() function is board dependednt.
>
> Hope this helps.
>
> Regards,
> Gururaja
>


Hi Gururaja,

It seems that the implementation limit the validity only for bus==0. This
means that trying other bus(=spi port ?)  will fail even if its not at the
same time. In addition to that the CPU's data sheet make no limit.

Best Regards,
Ran


More information about the U-Boot mailing list