spi: atmel-quadspi: Add support for classic SPI mode
authorAlexander Dahl <ada@thorsis.com>
Thu, 23 Jan 2025 12:12:14 +0000 (13:12 +0100)
committerEugen Hristev <eugen.hristev@linaro.org>
Wed, 12 Feb 2025 08:29:33 +0000 (10:29 +0200)
commitde2d304d81b8880eb40c7ba79e84489444e4bd6e
treeb51ed29768827a403678bffd61c51f39cc84e36d
parent1acf68f3d4642f532bf333832083dd18d6cf2511
spi: atmel-quadspi: Add support for classic SPI mode

The qspi controller on sama5d2 and sam9x60 supports "classic" SPI mode
without spi-mem enhancements and accelerations, very similar to the old
SPI controller on sam9g20 or the modern flexcom controllers of the same
SoC family.

Register interface differs somewhat, especially because only one
hardware controlled CS line is supported.  Some fields are missing, some
are in different registers, but in principal it works similar.  So code
is very much inspired by the old atmel-spi driver.

Tested on sam9x60 with a non-mainline driver to configure an FPGA.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
drivers/spi/atmel-quadspi.c