]> git.baikalelectronics.ru Git - kernel.git/commit
spi: cadence-quadspi: Add Xilinx Versal external DMA support
authorSai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>
Fri, 24 Sep 2021 10:07:11 +0000 (15:37 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 1 Oct 2021 19:50:52 +0000 (20:50 +0100)
commit504e301e9761c4c09c8983e33e552b07a019c8e2
treef0e3120159a2ab15e48df6b0fdacbd88f86fdba2
parent379d6a7ce9e40a1bfe0ec98cb80b648b05bb1afa
spi: cadence-quadspi: Add Xilinx Versal external DMA support

Add support to read the data from the flash using external DMA.
Cadence Octal SPI Flash Controller has optional DMA peripheral interface
to communicate indirect mode of operations with external DMA.
Xilinx Versal OSPI has external DMA enabled, this will automatically
request the external DMA to fetch the data from SRAM. It supports only
reading the data from SRAM (DMA read) and doesn't support writing the
data to SRAM (DMA write).
Xilinx Versal OSPI read the data from the flash device using external DMA
and write the data to the flash device using software triggered
indirect mode.

Signed-off-by: Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>
Link: https://lore.kernel.org/r/1632478031-12242-5-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c