From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: i.MX: GPIO based SPI chip selects question Date: Sat, 29 Oct 2011 13:51:02 +0200 Message-ID: <20111029115102.GC22592@ponder.secretlab.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Wayne Tams Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Fri, Oct 28, 2011 at 02:06:16PM +0100, Wayne Tams wrote: > Hi, > > Can I use GPIO pins on my i.mx53 for SPI chip select, I have found little > on the web that can help me, I am hoping that it is straight-forward enough > for me to implement it? Perhaps there is a macro that I can use in the > spi_board_info structure that will let me declare the GPIO? Yes, you can, but you may need to modify the spi driver to twiddle gpios between transfers. Not all drivers have it implemented. Bonus points if you create a generic gpio ss handling hook that all the spi drivers can use. g. > > If it is not possible, could anyone offer a suggestion on a solution for > adding more chips selects, perhaps there is another platform out there that > implements this sort of GPIO functionality? > > Many thanks > > Wayne > ------------------------------------------------------------------------------ > The demand for IT networking professionals continues to grow, and the > demand for specialized networking skills is growing even more rapidly. > Take a complimentary Learning@Cisco Self-Assessment and learn > about Cisco certifications, training, and career opportunities. > http://p.sf.net/sfu/cisco-dev2dev > _______________________________________________ > spi-devel-general mailing list > spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/spi-devel-general ------------------------------------------------------------------------------ Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World™ now supports Android™ Apps for the BlackBerry® PlayBook™. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev