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 help 9 Enables Gigadevice GD32 SPI driver. 10 11if SPI_GD32 12 13config SPI_GD32_INTERRUPT 14 bool "GD32 MCU SPI Interrupt Support" 15 default y if SPI_ASYNC 16 default y if SPI_GD32_DMA 17 help 18 Enable the interrupt driven mode for SPI instances 19 20config 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 28endif # SPI_GD32 29