i.MX6DL SPI DMA

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

i.MX6DL SPI DMA

1,549 次查看
persandberg
Contributor I

Regarding the issue with SPI using DMA and the chip errata ERR009165.

How to enable SPI DMA using the workaround mentioned in the errata ERR009165.

In the code (spi-imx.c) it stats that it is not possible to use DMA with the i.MX6DL.

static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx,                    struct spi_master *master){     int ret;      /* use pio mode for i.mx6dl chip TKT238285 */     if (of_machine_is_compatible("fsl,imx6dl"))          return 0;

/Per

标签 (1)
0 项奖励
回复
4 回复数

993 次查看
joanxie
NXP TechSupport
NXP TechSupport

for ERR009165, thy the uploaded patch. hope helpful for you.

0 项奖励
回复

993 次查看
persandberg
Contributor I

If I apply the patch to the correct kernel, how to handle the code below (spi-imx.c)?

static int spi_imx_sdma_init(struct device *dev, struct spi_imx_data *spi_imx,                    struct spi_master *master){     int ret;      /* use pio mode for i.mx6dl chip TKT238285 */     if (of_machine_is_compatible("fsl,imx6dl"))          return 0;

/Per

0 项奖励
回复

993 次查看
joanxie
NXP TechSupport
NXP TechSupport

did you see the patch 0001-MLK-10404-2-ARM-dts-imx6dl-support-ecspi-DMA-on-i.mx.patch? which Enable ecspi DMA support on i.mx6dl since there is official workaround for TKT238285.

0 项奖励
回复

993 次查看
persandberg
Contributor I

Thanks Joan!

Do you know which kernel it is based on? I am using kernel 4.1.15 from NXP.

It seems that yours is based on a newer kernel than mine.

/Per

0 项奖励
回复