Skip to content

Commit 5762ab7

Browse files
Romain Perierbroonie
authored andcommitted
spi: Add support for Armada 3700 SPI Controller
Marvell Armada 3700 SoC comprises an SPI Controller. This Controller supports up to 4 SPI slave devices, with dedicated chip selects,supports SPI mode 0/1/2 and 3, CPIO or Fifo mode with DMA transfers and different SPI transfer mode (Single, Dual or Quad). This commit adds basic driver support for FIFO mode. In this mode, dedicated registers are used to store the instruction, the address, the read mode and the data. Write and Read FIFO are used to store the outcoming or incoming data. The data FIFOs are accessible via DMA or by the CPU. Only the CPU is supported for now. Signed-off-by: Romain Perier <[email protected]> Tested-by: Gregory CLEMENT <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 4049537 commit 5762ab7

File tree

3 files changed

+931
-0
lines changed

3 files changed

+931
-0
lines changed

drivers/spi/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ config SPI_ATH79
6767
This enables support for the SPI controller present on the
6868
Atheros AR71XX/AR724X/AR913X SoCs.
6969

70+
config SPI_ARMADA_3700
71+
tristate "Marvell Armada 3700 SPI Controller"
72+
depends on (ARCH_MVEBU && OF) || COMPILE_TEST
73+
help
74+
This enables support for the SPI controller present on the
75+
Marvell Armada 3700 SoCs.
76+
7077
config SPI_ATMEL
7178
tristate "Atmel SPI Controller"
7279
depends on HAS_DMA

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o
1212

1313
# SPI master controller drivers (bus)
1414
obj-$(CONFIG_SPI_ALTERA) += spi-altera.o
15+
obj-$(CONFIG_SPI_ARMADA_3700) += spi-armada-3700.o
1516
obj-$(CONFIG_SPI_ATMEL) += spi-atmel.o
1617
obj-$(CONFIG_SPI_ATH79) += spi-ath79.o
1718
obj-$(CONFIG_SPI_AU1550) += spi-au1550.o

0 commit comments

Comments
 (0)