Skip to content

Commit 1b74dd6

Browse files
khayash1broonie
authored andcommitted
spi: Add Socionext F_OSPI SPI flash controller driver
Introduce Socionext F_OSPI controller driver. This controller is used to communicate with slave devices such as SPI Flash memories. It supports 4 slave devices and up to 8-bit wide bus, but supports master mode only. This driver uses spi-mem framework for SPI flash memory access, and can only operate indirect access mode and single data rate mode. Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Link: https://lore.kernel.org/r/20221124003351.7792-3-hayashi.kunihiko@socionext.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 41948bd commit 1b74dd6

3 files changed

Lines changed: 713 additions & 0 deletions

File tree

drivers/spi/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,15 @@ config SPI_SLAVE_MT27XX
906906
say Y or M here.If you are not sure, say N.
907907
SPI slave drivers for Mediatek MT27XX series ARM SoCs.
908908

909+
config SPI_SN_F_OSPI
910+
tristate "Socionext F_OSPI SPI flash controller"
911+
depends on OF && HAS_IOMEM
912+
depends on SPI_MEM
913+
help
914+
This enables support for the Socionext F_OSPI controller
915+
for connecting an SPI Flash memory over up to 8-bit wide bus.
916+
It supports indirect access mode only.
917+
909918
config SPI_SPRD
910919
tristate "Spreadtrum SPI controller"
911920
depends on ARCH_SPRD || COMPILE_TEST

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ obj-$(CONFIG_SPI_SH_MSIOF) += spi-sh-msiof.o
121121
obj-$(CONFIG_SPI_SH_SCI) += spi-sh-sci.o
122122
obj-$(CONFIG_SPI_SIFIVE) += spi-sifive.o
123123
obj-$(CONFIG_SPI_SLAVE_MT27XX) += spi-slave-mt27xx.o
124+
obj-$(CONFIG_SPI_SN_F_OSPI) += spi-sn-f-ospi.o
124125
obj-$(CONFIG_SPI_SPRD) += spi-sprd.o
125126
obj-$(CONFIG_SPI_SPRD_ADI) += spi-sprd-adi.o
126127
obj-$(CONFIG_SPI_STM32) += spi-stm32.o

0 commit comments

Comments
 (0)