From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Kuten Subject: Re: problem with converting from at91_spi to atmel_spi (AT91RM9200) Date: Thu, 24 May 2007 21:24:09 +0300 Message-ID: <20070524212409.7ee555d8@newbox> References: <20070523143456.15fc49ab@newbox> <200705230906.13353.david-b@pacbell.net> <20070524133646.62bbc386@dhcp-255-175.norway.atmel.com> <200705240931.43663.david-b@pacbell.net> <4655C956.8080300@billgatliff.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: David Brownell , spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Nicolas Ferre , Haavard Skinnemoen , andrew-eS41wJS13H5l57MIdRCFDg@public.gmane.org To: Bill Gatliff Return-path: In-Reply-To: <4655C956.8080300-uPd5UNENI//N9NzbbXoYwQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Thu, 24 May 2007 12:20:22 -0500 Bill Gatliff wrote: > Rev. F of the AT91RM9200 manual says, in 41.9.4: > > "If Mode fault is disabled, Chip Select 0 cannot be driven by a > component other than the SPI otherwise the transfer does not occur". > > ... but if you enable mode faulting, something else breaks IIRC. > > IOW, CS0 for the 9200 doesn't work if the SPI controls it. And SPI > doesn't work for CS0 if the SPI controller _doesn't_ control it, > either. So I've just quit using CS0. :( > So I assume AT91RM9200 boards such as: static struct spi_board_info ek_spi_devices[] = { { /* DataFlash chip */ .modalias = "mtd_dataflash", .chip_select = 0, .max_speed_hz = 15 * 1000 * 1000, }, static struct spi_board_info carmeva_spi_devices[] = { { /* DataFlash chip */ .modalias = "mtd_dataflash", .chip_select = 0, .max_speed_hz = 10 * 1000 * 1000, }, static struct spi_board_info dk_spi_devices[] = { { /* DataFlash chip */ .modalias = "mtd_dataflash", .chip_select = 0, .max_speed_hz = 15 * 1000 * 1000, }, are broken cause all of them have chip_select = 0 ? BR, Ivan ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/