Skip to content

Commit 579bad5

Browse files
committed
drivers: spi: gd32: Add support DMA transfer
Add supporting DMA-based transfer for GD32 SPI. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent a1148bb commit 579bad5

File tree

2 files changed

+324
-5
lines changed

2 files changed

+324
-5
lines changed

drivers/spi/Kconfig.gd32

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,16 @@ if SPI_GD32
1313
config SPI_GD32_INTERRUPT
1414
bool "GD32 MCU SPI Interrupt Support"
1515
default y if SPI_ASYNC
16+
default y if SPI_GD32_DMA
1617
help
1718
Enable the interrupt driven mode for SPI instances
1819

20+
config SPI_GD32_DMA
21+
bool "GD32 MCU SPI DMA Support"
22+
select DMA
23+
select SPI_GD32_INTERRUPT
24+
help
25+
Use the DMA for SPI transfer
26+
that enable dma channels in their device tree node.
27+
1928
endif # SPI_GD32

0 commit comments

Comments
 (0)