Hi could you share the reference implmentation/ configuration for imx8m ECSPI with DMA support.

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

Hi could you share the reference implmentation/ configuration for imx8m ECSPI with DMA support.

1,267 Views
Venkat21
Contributor I

Looking for a reference implementation/ configuration support for imx8m ECSPI with DMA support. Also need to access SPI DMA tx rx data from user space.

0 Kudos
Reply
1 Reply

1,258 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

 SPI driver (spi-imx.c) already uses sdma transmission, you don't need to consider using sdma in user space. 

see drivers/spi/spi-imx.c, please!

......

#define DRIVER_NAME "spi_imx"

static bool use_dma = true;
module_param(use_dma, bool, 0644);
MODULE_PARM_DESC(use_dma, "Enable usage of DMA when available (default)");

......

 

Have a nice day!

B.R,

Weidong

0 Kudos
Reply