On Thursday 19 March 2009, Marta Gros Marín wrote:
> I have created a Berkeley socket and I have written an SPI driver.
> And I need to redirect everything that comes from SPI through the socket.
> I mean, I need the socket to know when it has to read from SPI and send that.

What you need to write is a network driver, which adds
framing to (IP) packets and writes them to the other of
the SPI link, and which reads frames from that link,
strips the framing (packet type and length) from that
and passes them to the network stack.

You'd probably also want to arrange for some sort of
"data ready" IRQ to go from SPI slave to SPI master,
else you'll need to be polling constantly.

Writing a network driver is simple; there are a lot
of them to look at.

TI has promised to provide a SPI master driver that
works on DM355 and other DaVinci chips.



_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to