I want to use SDMA to transfer data over EIM from a FIFO on a FPGA to the IMX6. I found this post https://community.nxp.com/t5/i-MX-Processors/working-SDMA-with-EIM-on-iMX6/m-p/276541 and was hoping I could get the example code mentioned by Weidong. If that example code is not available I would like to be pointed in the right direct for where I could read more documentation about SDMA with EIM.
I looks like you want to transfer data from a fixed address (FPGA FIFO) to a continuous range of memory. Do you know the amount of data in advance, or do you have additional handshake signals for this (like FIFO empty)? Do you want the transfer to start "by hand" or should it start automatically as soon as data is available?
Most of the existing SDMA scripts like "ap_2_mcu" or "mcu_2_app" expect that there is a "DMA request" line from the peripheral to be monitored.
You can ask Weidong directly for the code he provided.
For general information, please refer to the "SDMA API" section of the i.MX Linux Reference Maual document for the Linux BSP you use.