]> 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)
commit0af9f6fd48f38ec32bb466b3b99e83d18a586de7
treef0e3120159a2ab15e48df6b0fdacbd88f86fdba2
parentb33f605537bea099172444b560840dda77af3a23
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