1# Copyright (c) 2021 BrainCo Inc.
2# SPDX-License-Identifier: Apache-2.0
3
4config SPI_GD32
5	bool "Gigadevice GD32 SPI driver"
6	default y
7	depends on DT_HAS_GD_GD32_SPI_ENABLED
8	select PINCTRL
9	help
10	  Enables Gigadevice GD32 SPI driver.
11
12if SPI_GD32
13
14config SPI_GD32_INTERRUPT
15	bool "GD32 MCU SPI Interrupt Support"
16	default y if SPI_ASYNC
17	default y if SPI_GD32_DMA
18	help
19	  Enable the interrupt driven mode for SPI instances
20
21config SPI_GD32_DMA
22	bool "GD32 MCU SPI DMA Support"
23	select DMA
24	select SPI_GD32_INTERRUPT
25	help
26	  Use the DMA for SPI transfer
27	  that enable dma channels in their device tree node.
28
29endif # SPI_GD32
30