i.MX6DL SPI DMA

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX6DL SPI DMA

2,734件の閲覧回数
persandberg
Contributor II

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 返答(返信)

2,178件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信

2,178件の閲覧回数
persandberg
Contributor II

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 件の賞賛
返信

2,178件の閲覧回数
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 件の賞賛
返信

2,178件の閲覧回数
persandberg
Contributor II

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 件の賞賛
返信