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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,288 次查看
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 项奖励
回复
1 回复

1,279 次查看
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 项奖励
回复