Hello all,
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 ?
Thank you.