2021-11-23 11:28:02 +08:00
|
|
|
# Copyright (c) 2021 BrainCo Inc.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config SPI_GD32
|
|
|
|
bool "Gigadevice GD32 SPI driver"
|
2022-07-21 05:14:56 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_GD_GD32_SPI_ENABLED
|
2021-11-23 11:28:02 +08:00
|
|
|
help
|
|
|
|
Enables Gigadevice GD32 SPI driver.
|
2022-07-03 06:57:50 +08:00
|
|
|
|
|
|
|
if SPI_GD32
|
|
|
|
|
|
|
|
config SPI_GD32_INTERRUPT
|
|
|
|
bool "GD32 MCU SPI Interrupt Support"
|
|
|
|
default y if SPI_ASYNC
|
2022-12-11 15:16:59 +08:00
|
|
|
default y if SPI_GD32_DMA
|
2022-07-03 06:57:50 +08:00
|
|
|
help
|
|
|
|
Enable the interrupt driven mode for SPI instances
|
|
|
|
|
2022-12-11 15:16:59 +08:00
|
|
|
config SPI_GD32_DMA
|
|
|
|
bool "GD32 MCU SPI DMA Support"
|
|
|
|
select DMA
|
|
|
|
select SPI_GD32_INTERRUPT
|
|
|
|
help
|
|
|
|
Use the DMA for SPI transfer
|
|
|
|
that enable dma channels in their device tree node.
|
|
|
|
|
2022-07-03 06:57:50 +08:00
|
|
|
endif # SPI_GD32
|