The linux kernel comes with a Master SPI driver that I have been successful in using on the OMAP L137 EVM. However, in my current project, it looks like i need to have a slave driver. I'm trying to scope out what would be needed to modify the master driver to be a slave.
Obviously, the spi hardware needs to be put into Slave mode. This is done by putting zeros in bits 0 and 1 of the SPIGCR1. I'd also need to set the Direction pins for SOMI, SIMO, CLK, and ENA in the SPIPC1 register.
Is there anything else I'd need to do? Anyone ever done this before?
Thanks