I'm using the OMAPL138 and I'm wondering if anyone knows of there are any available SPI slave drivers available for this chip. I'm running linux 2.6.32 from Timesys but this release only includes a master SPI, therefore I'm trying to implement my own linux driver by configuring the SPI control registers as suggested by the TMS320C674x/OMAP-L1x Processor SPI User's Guide but so far have been unsuccessful. I'm driving the SPI clk from an external SPI test device into the ARM but my driver does not seem to detect the clk and writes to SIMO pin.
These are the steps I'm doing:
1) Configure SPI control registers described in section 2.6 of the SPI user's guide (slave 3-pin).
2) Then I poll the RXINTFLG flag until set (1 - A newly received data is ready to be read. Rx buffer is full). My slave spi driver hangs in this operation even after I enable a clk and write data to the input SIMO pin.
Any suggestions or references would be greatly appreciated.