Skip to content

Commit 161aaab

Browse files
Cyrille Pitchencomputersforpeace
authored andcommitted
mtd: atmel-quadspi: add driver for Atmel QSPI controller
This driver add support to the new Atmel QSPI controller embedded into sama5d2x SoCs. It expects a NOR memory to be connected to the QSPI controller. Signed-off-by: Cyrille Pitchen <[email protected]> Acked-by: Nicolas Ferre <[email protected]> Signed-off-by: Brian Norris <[email protected]>
1 parent de3bfc4 commit 161aaab

File tree

3 files changed

+742
-0
lines changed

3 files changed

+742
-0
lines changed

drivers/mtd/spi-nor/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ config MTD_SPI_NOR_USE_4K_SECTORS
2929
Please note that some tools/drivers/filesystems may not work with
3030
4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum).
3131

32+
config SPI_ATMEL_QUADSPI
33+
tristate "Atmel Quad SPI Controller"
34+
depends on ARCH_AT91 || (ARM && COMPILE_TEST)
35+
depends on OF && HAS_IOMEM
36+
help
37+
This enables support for the Quad SPI controller in master mode.
38+
This driver does not support generic SPI. The implementation only
39+
supports SPI NOR.
40+
3241
config SPI_FSL_QUADSPI
3342
tristate "Freescale Quad SPI controller"
3443
depends on ARCH_MXC || SOC_LS1021A || ARCH_LAYERSCAPE || COMPILE_TEST

drivers/mtd/spi-nor/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
obj-$(CONFIG_MTD_SPI_NOR) += spi-nor.o
2+
obj-$(CONFIG_SPI_ATMEL_QUADSPI) += atmel-quadspi.o
23
obj-$(CONFIG_SPI_FSL_QUADSPI) += fsl-quadspi.o
34
obj-$(CONFIG_SPI_HISI_SFC) += hisi-sfc.o
45
obj-$(CONFIG_MTD_MT81xx_NOR) += mtk-quadspi.o

0 commit comments

Comments
 (0)