diff --git a/drivers/periph_common/Kconfig.spi b/drivers/periph_common/Kconfig.spi index 9ad5562add..d928196d78 100644 --- a/drivers/periph_common/Kconfig.spi +++ b/drivers/periph_common/Kconfig.spi @@ -20,6 +20,10 @@ config MODULE_PERIPH_SPI_RECONFIGURE bool "Pin reconfiguration support" depends on HAS_PERIPH_SPI_RECONFIGURE +config MODULE_PERIPH_SPI_ON_QSPI + bool "Use QSPI peripherial in SPI mode" + depends on HAS_PERIPH_SPI_ON_QSPI + config MODULE_PERIPH_SPI_GPIO_MODE bool "Support initializing SPI pins with adapted GPIO modes" depends on HAS_PERIPH_SPI_GPIO_MODE diff --git a/makefiles/features_modules.inc.mk b/makefiles/features_modules.inc.mk index b0e055b2b6..1b6b248544 100644 --- a/makefiles/features_modules.inc.mk +++ b/makefiles/features_modules.inc.mk @@ -18,7 +18,8 @@ ifneq (,$(filter periph_init, $(USEMODULE))) periph_rtc_rtt \ periph_clic \ periph_coretimer \ - periph_plic + periph_plic \ + periph_spi_on_qspi # PERIPH_MODULES := $(filter-out $(PERIPH_IGNORE_MODULES),\ $(filter periph_%,$(USEMODULE))) diff --git a/tests/periph_spi/Kconfig b/tests/periph_spi/Kconfig index 8e259953d9..bf2aa74643 100644 --- a/tests/periph_spi/Kconfig +++ b/tests/periph_spi/Kconfig @@ -9,4 +9,5 @@ config APPLICATION bool default y imply MODULE_PERIPH_SPI_RECONFIGURE + imply MODULE_PERIPH_SPI_ON_QSPI depends on TEST_KCONFIG diff --git a/tests/periph_spi_dma/Kconfig b/tests/periph_spi_dma/Kconfig index 8e259953d9..bf2aa74643 100644 --- a/tests/periph_spi_dma/Kconfig +++ b/tests/periph_spi_dma/Kconfig @@ -9,4 +9,5 @@ config APPLICATION bool default y imply MODULE_PERIPH_SPI_RECONFIGURE + imply MODULE_PERIPH_SPI_ON_QSPI depends on TEST_KCONFIG