diff --git a/cpu/qn908x/Kconfig b/cpu/qn908x/Kconfig index 98f7b03062..b36a47426e 100644 --- a/cpu/qn908x/Kconfig +++ b/cpu/qn908x/Kconfig @@ -19,6 +19,12 @@ config CPU_FAM_QN908X select HAS_PERIPH_WDT select HAS_PERIPH_WDT_CB + select MODULE_VENDOR if TEST_KCONFIG + # The clock functionality is used by most modules, including cpu.c even when + # no peripheral module is being used. + select MODULE_VENDOR_FSL_CLOCK if TEST_KCONFIG + select MODULE_PERIPH_GPIO_MUX if TEST_KCONFIG + ## CPU Models # For cpus QN9080CHN (revision C) and QN9080DHN (revision D) config CPU_MODEL_QN9080XHN @@ -50,5 +56,7 @@ config HAS_CPU_QN908X # Other cpu configuration rsource "Kconfig.clk" +rsource "periph/Kconfig" +rsource "vendor/Kconfig" source "$(RIOTCPU)/cortexm_common/Kconfig" diff --git a/cpu/qn908x/periph/Kconfig b/cpu/qn908x/periph/Kconfig new file mode 100644 index 0000000000..50ab202853 --- /dev/null +++ b/cpu/qn908x/periph/Kconfig @@ -0,0 +1,19 @@ +# Copyright (c) 2021 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_PERIPH_FLEXCOMM + bool + depends on TEST_KCONFIG + default y if MODULE_PERIPH_UART || MODULE_PERIPH_I2C || MODULE_PERIPH_SPI + help + Flexcomm interrupt dispatch driver. + +config MODULE_PERIPH_GPIO_MUX + bool + depends on TEST_KCONFIG + help + Common Pin MUX functions for qn908x CPUs. diff --git a/cpu/qn908x/vendor/Kconfig b/cpu/qn908x/vendor/Kconfig new file mode 100644 index 0000000000..f955b18195 --- /dev/null +++ b/cpu/qn908x/vendor/Kconfig @@ -0,0 +1,18 @@ +# Copyright (c) 2021 HAW Hamburg +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config MODULE_VENDOR + bool + depends on TEST_KCONFIG + help + qn908x vendor-specific code. + +config MODULE_VENDOR_FSL_CLOCK + bool + depends on MODULE_VENDOR + help + qn908x vendor-specific FSL Clock code.