|
Hi
I have the same problem...
My first approach was to make spi nodes in /dev
mknod /dev/spi0 c 153 0
mknod /dev/spi1 c 153 1
...
You need to have the SPI legacy driver being compiled into the kernel.
Now you can use the usual open, close, read, write functions.
But I am not abled to switch the SPI master clock.
Thus I invoking iomap to map physical memory to virtual memory space and then I set the SPI Clock e.g to 1MHz...
But I think it is dirty coding style doing it this way, but it works.
On the other hand I do not know which header to use for coding my own spi device driver with DMA tranfer and interrupt.
|