[U-Boot] SPI - cs validity

Ran Shalit ranshalit at gmail.com
Wed Apr 6 07:52:13 CEST 2011


Hello,

I am trying to understand the logic behind the implementation of SPI
interface, and came across a validity routine (for different baords it is
about the same):

for Atmel and Davinci for example:

int spi_cs_is_valid(unsigned int bus, unsigned int cs)
{
 return bus == 0 && cs == 0;
}

Althout atmel and davinci can have more then one spi port, it seems that
they will fail in configuration if bus is different then 0.
I wander if any one can solve this issue for me.

Many Thanks,

Ran


More information about the U-Boot mailing list