]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: cadence-qspi: Add direct mode support
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 27 Jan 2020 05:06:40 +0000 (10:36 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 27 Jan 2020 16:57:22 +0000 (22:27 +0530)
commitffab212123481aa44f37cd4fdb4476ec15ff98b6
treecc80bd2eb97b2d4a241c9f6e42b6299c6c0b905c
parentd640772021589214bd7606d481ae1f52fbe62fe6
spi: cadence-qspi: Add direct mode support

Add support for Direct Access Controller mode of Cadence QSPI. This
allows MMIO access to SPI NOR flash providing better read performance.
Direct mode is only exercised if AHB window size is greater than 8MB.
Support for flash address remapping is also not supported at the moment
and can be added in future.

For better performance, driver uses DMA to copy data from flash in
direct mode using dma_memcpy().

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Tested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/cadence_qspi.c
drivers/spi/cadence_qspi.h
drivers/spi/cadence_qspi_apb.c