seems spi-imx.c don't have the DMA support while spi transfer ?
Does anybody know if Freescale will plan to support this ?
Or , that's it ??
Sorry, I did not test the firmware you mentioned, I just refer the sdma design of spi_lpb.c in the sdk.
But unfortunately, the file is not designed under linux originally, so you could not use it directly.
And I try to compare
seems like firmware binary is different ??
As of today, there are no plans to add DMA support, there are no plans to add functionality to these drivers.
Please let me know if you have any other question.
I am working to improve boot time on the target with iMX6SL+SPI NOR flash.
In out rest, loading 4.501MB images takes about 2.297 secs.
According 30MHz SPI read clock, the actual transfer time is 1.2 secs.
It shows the overhead in spi_xfer takes about 1 seconds (u-boot/drivers/spi/imx_ecspi.c).
I want to reduce this overhead by applying DMA.
Q1: Is there any reference code for ecspi dma ?
I am trying to use SDMA SDMA_SHP_2_MCU in u-boot now.
First I am trying RX DMA --> but it stucks with BUSY status after starting dma transferring ...
Q2: How to proper set the chan_desc watermark level and and ECSPIx_DMAREG ( RXTDEN, RX_DMA_DMA_LENGTH, RXDEN, RX_THRESHOLD) to perform a ecspi rx dma operation ?
Currently I am also debugging SPI with DMA access and could not find the example in I.MX6 platform SDK you mentioned. Could you please share the link? Thank you very much!