Using DMA in imx6ul SPI client driver

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

Using DMA in imx6ul SPI client driver

1,840件の閲覧回数
uuwen
Contributor I

According to this link, it seems that DMA support can be enabled by setting "dma-names" in dts. Also referring to this thread and checking it, the DMA related driver code is also integrated in spi-imx.c.

I am writing a driver for a SPI SRAM device and am using the 23k256 driver (/drivers/mtd/devices/mchp23k256.c) as reference. It seems to me that the IMX SPI controller driver is already handling the DMA mappings and requests, and there is no extra configuration needed other than calling standard SPI API as illustrated in the 23k256 driver?

ラベル(4)
1 返信

1,549件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Chin

you are right, there is no extra configuration needed other than calling standard SPI APIs.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------