[U-Boot] [U-Boot PATCH v2 11/12] spi: davinci: add support for multiple bus and chip select

Tom Rini trini at ti.com
Tue Feb 25 23:12:02 CET 2014


On Thu, Feb 20, 2014 at 12:55:13PM -0500, Murali Karicheri wrote:

> From: Rex Chang <rchang at ti.com>
> 
> Currently davinci spi driver supports only bus 0 cs 0.
> This patch allows driver to support bus 1 and bus 2 with
> configurable number of chip selects. Also defaults are
> selected in a way to avoid regression on other platforms
> that uses davinci spi driver and has only one spi bus.
> 
> Signed-off-by: Rex Chang <rchang at ti.com>
> Signed-off-by: Murali Karicheri <m-karicheri2 at ti.com>
> ---
>  drivers/spi/davinci_spi.c |   62 ++++++++++++++++++++++++++++++++++++++++++---
>  drivers/spi/davinci_spi.h |   33 ++++++++++++++++++++++++
>  2 files changed, 91 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
> index e3fb321..c708a04 100644
> --- a/drivers/spi/davinci_spi.c
> +++ b/drivers/spi/davinci_spi.c
> @@ -23,7 +23,7 @@ void spi_init()
>  struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
>  			unsigned int max_hz, unsigned int mode)
>  {
> -	struct davinci_spi_slave	*ds;
> +	struct davinci_spi_slave        *ds;

Drop this whitespace change please.   Then you can add:

Acked-by: Tom Rini <trini at ti.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140225/2c952e2c/attachment.pgp>


More information about the U-Boot mailing list