Skip to content

Commit cef9991

Browse files
Sunny Luobroonie
authored andcommitted
spi: Add Amlogic SPISG driver
Introduced support for the new SPI IP (SPISG) driver. The SPISG is a communication-oriented SPI controller from Amlogic,supporting three operation modes: PIO, block DMA, and scatter-gather DMA. Due to there is no FIFO, PIO mode can only transfer one word at a time, which is extremely slow. Therefore, this mode was not implemented. Signed-off-by: Sunny Luo <[email protected]> Signed-off-by: Xianwei Zhao <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 78d35a2 commit cef9991

File tree

3 files changed

+898
-0
lines changed

3 files changed

+898
-0
lines changed

drivers/spi/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,15 @@ 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_SPISG
103+
tristate "Amlogic SPISG controller"
104+
depends on COMMON_CLK
105+
depends on ARCH_MESON || COMPILE_TEST
106+
help
107+
This enables master mode support for the SPISG (SPI scatter-gather
108+
communication controller), which is available on platforms such as
109+
Amlogic A4 SoCs.
110+
102111
config SPI_APPLE
103112
tristate "Apple SoC SPI Controller platform driver"
104113
depends on ARCH_APPLE || COMPILE_TEST

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_SPISG) += spi-amlogic-spisg.o
2324
obj-$(CONFIG_SPI_APPLE) += spi-apple.o
2425
obj-$(CONFIG_SPI_AR934X) += spi-ar934x.o
2526
obj-$(CONFIG_SPI_ARMADA_3700) += spi-armada-3700.o

0 commit comments

Comments
 (0)