Skip to content

Commit 1406234

Browse files
Graham Moorecomputersforpeace
authored andcommitted
mtd: spi-nor: Add driver for Cadence Quad SPI Flash Controller
Add support for the Cadence QSPI controller. This controller is present in the Altera SoCFPGA SoCs and this driver has been tested on the Cyclone V SoC. Signed-off-by: Graham Moore <[email protected]> Signed-off-by: Marek Vasut <[email protected]> Cc: Alan Tull <[email protected]> Cc: Brian Norris <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Dinh Nguyen <[email protected]> Cc: Graham Moore <[email protected]> Cc: Vignesh R <[email protected]> Cc: Yves Vandervennet <[email protected]> Cc: [email protected] Signed-off-by: Brian Norris <[email protected]>
1 parent b584399 commit 1406234

File tree

3 files changed

+1311
-0
lines changed

3 files changed

+1311
-0
lines changed

drivers/mtd/spi-nor/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ config SPI_ATMEL_QUADSPI
3838
This driver does not support generic SPI. The implementation only
3939
supports SPI NOR.
4040

41+
config SPI_CADENCE_QUADSPI
42+
tristate "Cadence Quad SPI controller"
43+
depends on OF && (ARM || COMPILE_TEST)
44+
help
45+
Enable support for the Cadence Quad SPI Flash controller.
46+
47+
Cadence QSPI is a specialized controller for connecting an SPI
48+
Flash over 1/2/4-bit wide bus. Enable this option if you have a
49+
device with a Cadence QSPI controller and want to access the
50+
Flash as an MTD device.
51+
4152
config SPI_FSL_QUADSPI
4253
tristate "Freescale Quad SPI controller"
4354
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,5 +1,6 @@
11
obj-$(CONFIG_MTD_SPI_NOR) += spi-nor.o
22
obj-$(CONFIG_SPI_ATMEL_QUADSPI) += atmel-quadspi.o
3+
obj-$(CONFIG_SPI_CADENCE_QUADSPI) += cadence-quadspi.o
34
obj-$(CONFIG_SPI_FSL_QUADSPI) += fsl-quadspi.o
45
obj-$(CONFIG_SPI_HISI_SFC) += hisi-sfc.o
56
obj-$(CONFIG_MTD_MT81xx_NOR) += mtk-quadspi.o

0 commit comments

Comments
 (0)