i.MX6DL SPI DMA

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

i.MX6DL SPI DMA

3,031 Views
persandberg
Contributor III

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

Labels (1)
0 Kudos
Reply
4 Replies

2,475 Views
joanxie
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply

2,475 Views
persandberg
Contributor III

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 Kudos
Reply

2,475 Views
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 Kudos
Reply

2,475 Views
persandberg
Contributor III

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 Kudos
Reply