Hi there,

El 01/07/14 18:47, bruce bushby escribió:
Hi

I wanted to ask if anybody has tried to build spi-sun7.c for mainline
kernels?

I followed this excellent guide:
http://will-tm.com/spi-on-the-cubieboard2/


...but the compile fails with

drivers/spi/spi-sun7i.c:30:22: fatal error: mach/dma.h: No such file or
directory
  #include <mach/dma.h>
                       ^
compilation terminated.
make[3]: *** [drivers/spi/spi-sun7i.o] Error 1
make[3]: *** Waiting for unfinished jobs....

SPI on mainline is already supported on A20 via the SPI_SUN4I kconfig entry. It only supports PIO transfers for the moment.

I also noticed the Fedora 20 images doesn't support SPI for A20:
https://github.com/jwrdegoede/sunxi-fedora-scripts/blob/master/README
* SPI (as module, not supported on A20)

This uses the linux-sunxi 3.4 kernel. I believe it has also recently gained SPI support on A20.

So now I'm a little worried as my entire project is built around 4 SPI
devices on an A20-SOM :)

Any secret plans for full DMA + SPI in the works?

As part of my work on DMA, I have worked on enabling DMA transfers on SPI, so it should be supported on mainline in the nearby future. I'll be sending a fresh second round of patches you can try really soon, so stay tuned.

Cheers,

Emilio

--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to