Re: [U-Boot] SPI - cs validity

2011-04-06 Thread Hebbar, Gururaja
Hi, On Wed, Apr 06, 2011 at 15:02:22, Ran Shalit wrote: > > > 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

Re: [U-Boot] SPI - cs validity

2011-04-06 Thread Ran Shalit
> 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 addre

Re: [U-Boot] SPI - cs validity

2011-04-06 Thread Hebbar, Gururaja
Hi, On Wed, Apr 06, 2011 at 11:22:13, Ran Shalit wrote: > 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_val

[U-Boot] SPI - cs validity

2011-04-05 Thread Ran Shalit
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; } Altho