
On 05/14/2019 01:26 PM, Tudor Ambarus - M18064 wrote:
From: Tudor Ambarus tudor.ambarus@microchip.com
Backport the driver from linux v5.1-rc5 and adapt it for u-boot. Tested on sama5d2_xplained Rev B with mx25l25635e spi-nor flash.
Signed-off-by: Tudor Ambarus tudor.ambarus@microchip.com
v3: no change v2: no change
drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/atmel-quadspi.c | 535 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 543 insertions(+) create mode 100644 drivers/spi/atmel-quadspi.c
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index dc3e23f353aa..69c2f92c7826 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig @@ -49,6 +49,13 @@ config ATH79_SPI uses driver model and requires a device tree binding to operate. please refer to doc/device-tree-bindings/spi/spi-ath79.txt.
+config ATMEL_QSPI
- bool "Atmel QSPI driver"
"Atmel Quad SPI Controller"
- depends on ARCH_AT91
- help
Enable the Ateml Quad-SPI (QSPI) driver. This driver can only be
used to access SPI NOR flashes.
The description is wrong, I'll submit a new version if everything else looks ok. This should have been:
This enables support for the Quad SPI controller in master mode. This driver does not support generic SPI. The implementation only supports spi-mem interface.