This Kconfig has wrongly been added to defconfig files. It is not the right place for it. It has never been the right place for it. Drivers that need it should select the symbol in their Kconfig entries. Drop PINCTL from Kconfig.defconfig and add proper select at Kconfig.gd32. Fixes #78619 Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
30 lines
629 B
Plaintext
30 lines
629 B
Plaintext
# Copyright (c) 2021 BrainCo Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config SPI_GD32
|
|
bool "Gigadevice GD32 SPI driver"
|
|
default y
|
|
depends on DT_HAS_GD_GD32_SPI_ENABLED
|
|
select PINCTRL
|
|
help
|
|
Enables Gigadevice GD32 SPI driver.
|
|
|
|
if SPI_GD32
|
|
|
|
config SPI_GD32_INTERRUPT
|
|
bool "GD32 MCU SPI Interrupt Support"
|
|
default y if SPI_ASYNC
|
|
default y if SPI_GD32_DMA
|
|
help
|
|
Enable the interrupt driven mode for SPI instances
|
|
|
|
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.
|
|
|
|
endif # SPI_GD32
|