Skip to content

Commit 1bcb9f8

Browse files
purna-mandalbroonie
authored andcommitted
spi: spi-pic32: Add PIC32 SPI master driver
The PIC32 SPI driver is capable of performing SPI transfers using PIO or external DMA engine. GPIO controlled /CS support is made default in the driver for correct operation of the controller. This can be enabled by adding "cs-gpios" property of the SPI node in board dts file. Signed-off-by: Purna Chandra Mandal <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 120e898 commit 1bcb9f8

File tree

3 files changed

+895
-0
lines changed

3 files changed

+895
-0
lines changed

drivers/spi/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,12 @@ config SPI_ORION
436436
help
437437
This enables using the SPI master controller on the Orion chips.
438438

439+
config SPI_PIC32
440+
tristate "Microchip PIC32 series SPI"
441+
depends on MACH_PIC32 || COMPILE_TEST
442+
help
443+
SPI driver for Microchip PIC32 SPI master controller.
444+
439445
config SPI_PL022
440446
tristate "ARM AMBA PL022 SSP controller"
441447
depends on ARM_AMBA

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ obj-$(CONFIG_SPI_OMAP_100K) += spi-omap-100k.o
6262
obj-$(CONFIG_SPI_OMAP24XX) += spi-omap2-mcspi.o
6363
obj-$(CONFIG_SPI_TI_QSPI) += spi-ti-qspi.o
6464
obj-$(CONFIG_SPI_ORION) += spi-orion.o
65+
obj-$(CONFIG_SPI_PIC32) += spi-pic32.o
6566
obj-$(CONFIG_SPI_PL022) += spi-pl022.o
6667
obj-$(CONFIG_SPI_PPC4xx) += spi-ppc4xx.o
6768
spi-pxa2xx-platform-objs := spi-pxa2xx.o spi-pxa2xx-dma.o

0 commit comments

Comments
 (0)