Re: [PATCH] mcspi: Add support for GPIO chip select lines

2011-03-14 Thread Grant Likely
On Sun, Mar 13, 2011 at 03:05:19PM -0400, Ben Gamari wrote: Many applications require more chip select lines than the board or processor allow. Introduce a mechanism to allow use of GPIO pins as chip select lines with the McSPI controller. To use this functionality, one simply provides a table

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2011-03-14 Thread Ben Gamari
On Mon, 14 Mar 2011 13:27:18 -0600, Grant Likely grant.lik...@secretlab.ca wrote: What if the board wanted to use both the native SPI ss line as well as one or more GPIOs? You probably want to reserve cs0 for the native gpio line. Hmm, I had thought about this and assumed it would be

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2011-03-14 Thread Grant Likely
On Mon, Mar 14, 2011 at 10:06:40PM -0400, Ben Gamari wrote: On Mon, 14 Mar 2011 13:27:18 -0600, Grant Likely grant.lik...@secretlab.ca wrote: What if the board wanted to use both the native SPI ss line as well as one or more GPIOs? You probably want to reserve cs0 for the native gpio

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2011-02-13 Thread Ben Gamari
On Sat, 12 Feb 2011 01:33:24 -0700, Grant Likely grant.lik...@secretlab.ca wrote: (Sorry for the really laggy reply) No worries, I was just starting to think about this again myself. I don't see it being that big a deal. gpio drivers are pretty lightweight and it is fine to have

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2011-02-12 Thread Grant Likely
On Fri, Dec 24, 2010 at 01:05:56AM -0500, Ben Gamari wrote: On Thu, 23 Dec 2010 20:28:19 -0700, Grant Likely grant.lik...@secretlab.ca wrote: On Thu, Dec 23, 2010 at 09:27:20PM -0500, Ben Gamari wrote: I understand your concerns, but I'm not sure how to satisfy them without crippling

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Tony Lindgren
* Ben Gamari bgamari.f...@gmail.com [101221 09:56]: This mechanism is in large part stolen from the s3c64xx-spi module. To use this functionality, one simply must define a set_level function to set the CS state and a omap2_mcspi_csinfo struct for each chip select in the board file. Each

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Grant Likely
On Tue, Dec 21, 2010 at 10:56 AM, Ben Gamari bgamari.f...@gmail.com wrote: This mechanism is in large part stolen from the s3c64xx-spi module. To use this functionality, one simply must define a set_level function to set the CS state and a omap2_mcspi_csinfo struct for each chip select in the

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Ben Gamari
On Thu, 23 Dec 2010 14:38:57 -0700, Grant Likely grant.lik...@secretlab.ca wrote: On Tue, Dec 21, 2010 at 10:56 AM, Ben Gamari bgamari.f...@gmail.com wrote: This mechanism is in large part stolen from the s3c64xx-spi module. To use this functionality, one simply must define a set_level

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Grant Likely
On Thu, Dec 23, 2010 at 4:09 PM, Ben Gamari bgamari.f...@gmail.com wrote: On Thu, 23 Dec 2010 14:38:57 -0700, Grant Likely grant.lik...@secretlab.ca wrote: On Tue, Dec 21, 2010 at 10:56 AM, Ben Gamari bgamari.f...@gmail.com wrote: This mechanism is in large part stolen from the s3c64xx-spi

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Ben Gamari
On Thu, 23 Dec 2010 17:37:12 -0700, Grant Likely grant.lik...@secretlab.ca wrote: On Thu, Dec 23, 2010 at 4:09 PM, Ben Gamari bgamari.f...@gmail.com wrote: The reason I left this up to the board is it's easy to foresee cases where you want a non-trivial mapping between logical CS numbers and

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Grant Likely
On Thu, Dec 23, 2010 at 09:27:20PM -0500, Ben Gamari wrote: On Thu, 23 Dec 2010 17:37:12 -0700, Grant Likely grant.lik...@secretlab.ca wrote: On Thu, Dec 23, 2010 at 4:09 PM, Ben Gamari bgamari.f...@gmail.com wrote: The reason I left this up to the board is it's easy to foresee cases

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Ben Gamari
On Thu, 23 Dec 2010 20:28:19 -0700, Grant Likely grant.lik...@secretlab.ca wrote: On Thu, Dec 23, 2010 at 09:27:20PM -0500, Ben Gamari wrote: I understand your concerns, but I'm not sure how to satisfy them without crippling the design's ability to accomodate my use-case. I can't pass a