Skip to content

Commit d4b3c7f

Browse files
author
Radu Pirea
committed
spi: at91-usart: add driver for at91-usart as spi
This is the driver for at91-usart in spi mode. The USART IP can be configured to work in many modes and one of them is SPI. The driver was tested on sama5d3-xplained and sama5d4-xplained boards with enc28j60 ethernet controller as slave. Signed-off-by: Radu Pirea <radu.pirea@microchip.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
1 parent 4cc9ca1 commit d4b3c7f

File tree

3 files changed

+444
-0
lines changed

3 files changed

+444
-0
lines changed

drivers/spi/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ config SPI_ATMEL
7575
This selects a driver for the Atmel SPI Controller, present on
7676
many AT32 (AVR32) and AT91 (ARM) chips.
7777

78+
config SPI_AT91_USART
79+
tristate "Atmel USART Controller SPI driver"
80+
depends on HAS_DMA
81+
depends on (ARCH_AT91 || COMPILE_TEST)
82+
select MFD_AT91_USART
83+
help
84+
This selects a driver for the AT91 USART Controller as SPI Master,
85+
present on AT91 and SAMA5 SoC series.
86+
7887
config SPI_AU1550
7988
tristate "Au1550/Au1200/Au1300 SPI Controller"
8089
depends on MIPS_ALCHEMY

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o
1313
# SPI master controller drivers (bus)
1414
obj-$(CONFIG_SPI_ALTERA) += spi-altera.o
1515
obj-$(CONFIG_SPI_ATMEL) += spi-atmel.o
16+
obj-$(CONFIG_SPI_AT91_USART) += spi-at91-usart.o
1617
obj-$(CONFIG_SPI_ATH79) += spi-ath79.o
1718
obj-$(CONFIG_SPI_AU1550) += spi-au1550.o
1819
obj-$(CONFIG_SPI_AXI_SPI_ENGINE) += spi-axi-spi-engine.o

0 commit comments

Comments
 (0)