DMA for SPI transfer on LS1021A

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DMA for SPI transfer on LS1021A

938 Views
thomastamandl
Contributor I

Hi,

on my board there is a 512kBit FRAM connected to the SPI interface. The interface is configured to spi-max-frequency = 40MHz ( which results in a clock frequency of about 36 MHz). But writing 512kBit lasts ~0.6 or ~1.2s depending on eoq- or tcfq-irq-mode, which is too long for my application. It seems IRQ based transfer is not fast enough. Is there the possibility to configure DMA for SPI transfer?

Best regards

Thomas

Labels (1)
0 Kudos
1 Reply

635 Views
r8070z
NXP Employee
NXP Employee


Have a great day,

 

The LS1021A SPI can use eDMA for adding entries to TX FIFO and removing entries from RX FIFO. The spi software driver may support or may not support DMA mode. See for example

http://lists.infradead.org/pipermail/linux-arm-kernel/2014-February/235598.html

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos