Skip to content

Commit 4670db6

Browse files
Feng Chenbroonie
authored andcommitted
spi: amlogic: add driver for Amlogic SPI Flash Controller
This driver provides support for the SPI mode of the Amlogic Flash Controller. It supports both SPI NOR flash and SPI NAND flash. For SPI NAND, the Host ECC hardware engine can be enabled. The controller implements the SPI-MEM interface and does not support generic SPI. Signed-off-by: Feng Chen <feng.chen@amlogic.com> Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com> Link: https://patch.msgid.link/20250910-spifc-v6-2-1574aa9baebd@amlogic.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 0467d6c commit 4670db6

3 files changed

Lines changed: 1233 additions & 0 deletions

File tree

drivers/spi/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,16 @@ config SPI_AMLOGIC_SPIFC_A1
9999
This enables master mode support for the SPIFC (SPI flash
100100
controller) available in Amlogic A1 (A113L SoC).
101101

102+
config SPI_AMLOGIC_SPIFC_A4
103+
tristate "Amlogic A4 SPI Flash controller"
104+
depends on ARCH_MESON || COMPILE_TEST
105+
select REGMAP_MMIO
106+
help
107+
This enables SPI mode on the NAND Flash Controller of Amlogic
108+
ARM SoCs. It supports SPI Nor Flash and SPI NAND Flash (Could
109+
enable Host ECC HW engine). The controller implements the
110+
SPI-MEM interface, it doesn't support generic SPI.
111+
102112
config SPI_AMLOGIC_SPISG
103113
tristate "Amlogic SPISG controller"
104114
depends on COMMON_CLK

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ obj-$(CONFIG_SPI_ALTERA) += spi-altera-platform.o
2020
obj-$(CONFIG_SPI_ALTERA_CORE) += spi-altera-core.o
2121
obj-$(CONFIG_SPI_ALTERA_DFL) += spi-altera-dfl.o
2222
obj-$(CONFIG_SPI_AMLOGIC_SPIFC_A1) += spi-amlogic-spifc-a1.o
23+
obj-$(CONFIG_SPI_AMLOGIC_SPIFC_A4) += spi-amlogic-spifc-a4.o
2324
obj-$(CONFIG_SPI_AMLOGIC_SPISG) += spi-amlogic-spisg.o
2425
obj-$(CONFIG_SPI_APPLE) += spi-apple.o
2526
obj-$(CONFIG_SPI_AR934X) += spi-ar934x.o

0 commit comments

Comments
 (0)