]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Add support for Armada 3700 SPI Controller
authorRomain Perier <romain.perier@free-electrons.com>
Thu, 8 Dec 2016 14:58:44 +0000 (15:58 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 8 Dec 2016 16:05:34 +0000 (16:05 +0000)
commit359db2b757bd085acc5ef7daf1b9bc7832f3c53b
tree3632a6465da524ccb201bdd22b9e2d4097cfba4e
parentca75212168f0824eafe2056599fbe25957b30ae8
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 <romain.perier@free-electrons.com>
Tested-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi-armada-3700.c [new file with mode: 0644]