Skip to content

Commit 0d43d7a

Browse files
ludovicbarreCyrillePitchen
authored andcommitted
mtd: spi-nor: add driver for STM32 quad spi flash controller
The quadspi is a specialized communication interface targeting single, dual or quad SPI Flash memories. It can operate in any of the following modes: -indirect mode: all the operations are performed using the quadspi registers -read memory-mapped mode: the external Flash memory is mapped to the microcontroller address space and is seen by the system as if it was an internal memory Signed-off-by: Ludovic Barre <ludovic.barre@st.com> Reviewed-by: Marek Vasut <marek.vasut@gmail.com> Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
1 parent b0fcb4b commit 0d43d7a

3 files changed

Lines changed: 701 additions & 0 deletions

File tree

‎drivers/mtd/spi-nor/Kconfig‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,11 @@ config SPI_INTEL_SPI_PLATFORM
106106
To compile this driver as a module, choose M here: the module
107107
will be called intel-spi-platform.
108108

109+
config SPI_STM32_QUADSPI
110+
tristate "STM32 Quad SPI controller"
111+
depends on ARCH_STM32
112+
help
113+
This enables support for the STM32 Quad SPI controller.
114+
We only connect the NOR to this controller.
115+
109116
endif # MTD_SPI_NOR

‎drivers/mtd/spi-nor/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ obj-$(CONFIG_MTD_MT81xx_NOR) += mtk-quadspi.o
88
obj-$(CONFIG_SPI_NXP_SPIFI) += nxp-spifi.o
99
obj-$(CONFIG_SPI_INTEL_SPI) += intel-spi.o
1010
obj-$(CONFIG_SPI_INTEL_SPI_PLATFORM) += intel-spi-platform.o
11+
obj-$(CONFIG_SPI_STM32_QUADSPI) += stm32-quadspi.o

0 commit comments

Comments
 (0)