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)
commit1a6f854f7daab100ff0a94d31f35a387b462b4d1
treef0e3120159a2ab15e48df6b0fdacbd88f86fdba2
parent09e393e3f13970f194f7ed9a93140a8601225b46
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