----- Original Message ----- 
From: "Talis, Gilles" <[email protected]>
To: <[email protected]>
Sent: Tuesday, February 09, 2010 3:06 PM
Subject: OMAP3 Slave McSPI driver


> Hi,
>
> My customer is using Android 2.6.29 kernel from OMAPZOOM and is looking 
> for support for slave mode on the SPI driver.
> I saw there were patches for this feature sent to this list, but I was 
> wondering if those patches were tested on 2.6.29.
>

These patches have not been specifically tested on 29 kernel, but you could 
give it a shot. Pl also look at the latest patches (V2) posted.

> I am also looking for some kind of API usage guidelines. How to setup the 
> slave mode and how is OMAP notified that data have been received from 
> external master device? My customer plans to use this driver in interrupt 
> mode (no DMA needed).
>

To set any mcspi controller to slave mode, you need to modify 
arch/arm/mach-omap2/devices.c file and set mode to OMAP2_MCSPI_SLAVE.

Typically gpio is used by master to notify the slave that it is ready to 
transfer data. On gpio interrupt slave client could issue spi_read/spi_write 
commands.

Two modes are supported i.e PIO and DMA. Any specific reason not to use DMA 
mode.

Thanks
Hemanth

> Thanks
> Gilels.
>
>
>
> Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve 
> Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 753.920
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to