Skip to content

Commit 1f8811a

Browse files
neuschaeferbroonie
authored andcommitted
spi: wpcm-fiu: Add driver for Nuvoton WPCM450 Flash Interface Unit (FIU)
The Flash Interface Unit (FIU) is the SPI flash controller in the Nuvoton WPCM450 BMC SoC. It supports four chip selects, and direct (memory-mapped) access to 16 MiB per chip. Larger flash chips can be accessed by software-defined SPI transfers. The FIU in newer NPCM7xx SoCs is not compatible with the WPCM450 FIU. Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Link: https://lore.kernel.org/r/20221124191400.287918-3-j.neuschaefer@gmx.net Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 67df56d commit 1f8811a

3 files changed

Lines changed: 456 additions & 0 deletions

File tree

drivers/spi/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,17 @@ config SPI_MTK_SNFI
635635
is implemented as a SPI-MEM controller with pipelined ECC
636636
capcability.
637637

638+
config SPI_WPCM_FIU
639+
tristate "Nuvoton WPCM450 Flash Interface Unit"
640+
depends on ARCH_NPCM || COMPILE_TEST
641+
select REGMAP
642+
help
643+
This enables support got the Flash Interface Unit SPI controller
644+
present in the Nuvoton WPCM450 SoC.
645+
646+
This driver does not support generic SPI. The implementation only
647+
supports the spi-mem interface.
648+
638649
config SPI_NPCM_FIU
639650
tristate "Nuvoton NPCM FLASH Interface Unit"
640651
depends on ARCH_NPCM || COMPILE_TEST

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ obj-$(CONFIG_SPI_MTK_NOR) += spi-mtk-nor.o
8383
obj-$(CONFIG_SPI_MTK_SNFI) += spi-mtk-snfi.o
8484
obj-$(CONFIG_SPI_MXIC) += spi-mxic.o
8585
obj-$(CONFIG_SPI_MXS) += spi-mxs.o
86+
obj-$(CONFIG_SPI_WPCM_FIU) += spi-wpcm-fiu.o
8687
obj-$(CONFIG_SPI_NPCM_FIU) += spi-npcm-fiu.o
8788
obj-$(CONFIG_SPI_NPCM_PSPI) += spi-npcm-pspi.o
8889
obj-$(CONFIG_SPI_NXP_FLEXSPI) += spi-nxp-fspi.o

0 commit comments

Comments
 (0)