lkml.org 
[lkml]   [2015]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv2 2/2] spi: orion: Add multiple chip select support to spi-orion
On Mon, Jan 12, 2015 at 01:14:00PM +1000, Ken Wilson wrote:

> +- num-cs : The total number of chip selects used by this platform.
> + If unset, this defaults to 1.

So, this is intended to be the number of hardware chip selects that can
be configured but the first commit mentioned GPIOs as an option too so
we should at least say that this is specifically the controller
supported ones. However...

> +#define ORION_SPI_CS_MASK 0x1C
> +#define ORION_SPI_CS_SHIFT 2
> +#define ORION_SPI_CS(cs) ((cs << ORION_SPI_CS_SHIFT) & \
> + ORION_SPI_CS_MASK)

...given that we have a fixed bitfield here which we know and doesn't
appear to depend on configuration do we even need this to be
configurable - given that we're going to need an explicit node for any
slave can't we just accept any sane chip select for a slave without
extending the binding?
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-01-14 21:41    [W:0.053 / U:0.628 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site