]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: atmel-quadspi: Add support for SAMA7G5 QSPI
authorTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 3 Nov 2021 16:47:10 +0000 (18:47 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 7 Dec 2021 06:55:22 +0000 (08:55 +0200)
commit2fd1b97f33c91e9878d24a0f251ba0d2104e9e71
tree7dde154edcf6ae53d9f856dae6a2fa065bb3b28e
parent7dc48b41f4f3e00d9865308605cb3831d7a6c1fb
spi: atmel-quadspi: Add support for SAMA7G5 QSPI

sama7g5 QSPI has:
1/ One Octal Serial Peripheral Interfaces (QSPI0) Supporting Up to
   200 MHz DDR. Octal, TwinQuad, Hyperflash and OctaFlash Protocols Supported
2/ One Quad Serial Peripheral Interfaces (QSPI1) Supporting Up to
   90 MHz DDR/133 MHz SDR

The QSPI controller of SAMA7G5 uses different clock domains, hence extra
synchronization operations must be performed before accessing some
registers. Differentiate between the versions of the IP using has_gclk.
Differentiate between QSPI0 and QSPI1 with has_octal.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/atmel-quadspi.c