diff --git a/boards/common/silabs/Kconfig b/boards/common/silabs/Kconfig index 73d84a7f37..c425c2b2c5 100644 --- a/boards/common/silabs/Kconfig +++ b/boards/common/silabs/Kconfig @@ -9,3 +9,13 @@ config BOARD_COMMON_SILABS select HAS_ARDUINO select HAS_EFM32_CORETEMP select HAS_RIOTBOOT + +config MODULE_BOARDS_COMMON_SILABS + bool + depends on TEST_KCONFIG + depends on BOARD_COMMON_SILABS + default y + help + Common silabs board code. + +rsource "drivers/Kconfig" diff --git a/boards/common/silabs/drivers/Kconfig b/boards/common/silabs/drivers/Kconfig new file mode 100644 index 0000000000..f737042fa3 --- /dev/null +++ b/boards/common/silabs/drivers/Kconfig @@ -0,0 +1,10 @@ +# 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. +# + +rsource "aem/Kconfig" +rsource "bc/Kconfig" +rsource "pic/Kconfig" diff --git a/boards/common/silabs/drivers/aem/Kconfig b/boards/common/silabs/drivers/aem/Kconfig new file mode 100644 index 0000000000..eb69f572fc --- /dev/null +++ b/boards/common/silabs/drivers/aem/Kconfig @@ -0,0 +1,13 @@ +# 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_SILABS_AEM + bool + depends on TEST_KCONFIG + depends on BOARD_COMMON_SILABS + help + Advanced energy monitor driver for silabs boards. diff --git a/boards/common/silabs/drivers/bc/Kconfig b/boards/common/silabs/drivers/bc/Kconfig new file mode 100644 index 0000000000..203c458e71 --- /dev/null +++ b/boards/common/silabs/drivers/bc/Kconfig @@ -0,0 +1,13 @@ +# 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_SILABS_BC + bool + depends on TEST_KCONFIG + depends on BOARD_COMMON_SILABS + help + Board controller driver for silabs boards. diff --git a/boards/common/silabs/drivers/pic/Kconfig b/boards/common/silabs/drivers/pic/Kconfig new file mode 100644 index 0000000000..f86384c6d8 --- /dev/null +++ b/boards/common/silabs/drivers/pic/Kconfig @@ -0,0 +1,15 @@ +# 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_SILABS_PIC + bool + depends on TEST_KCONFIG + depends on BOARD_COMMON_SILABS + depends on HAS_PERIPH_I2C + select MODULE_PERIPH_I2C + help + Power-and-interrupt controller driver for silabs boards. diff --git a/boards/common/slwstk6000b/Kconfig b/boards/common/slwstk6000b/Kconfig index 540668e47f..46ae18bb52 100644 --- a/boards/common/slwstk6000b/Kconfig +++ b/boards/common/slwstk6000b/Kconfig @@ -15,5 +15,17 @@ config BOARD_COMMON_SLWSTK6000B select HAS_PERIPH_TIMER select HAS_PERIPH_UART select HAS_PERIPH_UART_MODECFG + # additional hardware present in the board + select HAVE_SAUL_GPIO + select HAVE_SI7021 + +config MODULE_BOARD_COMMON_SLWSTK6000B + bool + depends on TEST_KCONFIG + depends on BOARD_COMMON_SLWSTK6000B + select MODULE_SILABS_AEM + select MODULE_SILABS_BC + help + Common code for SLWSTK6000B silabs boards. source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/e180-zg120b-tb/Kconfig b/boards/e180-zg120b-tb/Kconfig index 7407fb8756..2d56ef67b6 100644 --- a/boards/e180-zg120b-tb/Kconfig +++ b/boards/e180-zg120b-tb/Kconfig @@ -20,4 +20,6 @@ config BOARD_E180_ZG120B_TB select HAS_EFM32_CORETEMP select HAS_RIOTBOOT + select HAVE_SAUL_GPIO + source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/ikea-tradfri/Kconfig b/boards/ikea-tradfri/Kconfig index 360acedbb3..71dfa8c64b 100644 --- a/boards/ikea-tradfri/Kconfig +++ b/boards/ikea-tradfri/Kconfig @@ -20,3 +20,6 @@ config BOARD_IKEA_TRADFRI select HAS_PERIPH_UART_MODECFG select HAS_EFM32_CORETEMP select HAS_RIOTBOOT + + select HAVE_SAUL_GPIO + select HAVE_MTD_SPI_NOR diff --git a/boards/slstk3400a/Kconfig b/boards/slstk3400a/Kconfig index 9dcd10b97a..a9d76038ad 100644 --- a/boards/slstk3400a/Kconfig +++ b/boards/slstk3400a/Kconfig @@ -21,4 +21,9 @@ config BOARD_SLSTK3400A select HAS_PERIPH_UART select HAS_PERIPH_UART_MODECFG + select MODULE_SILABS_BC if TEST_KCONFIG + # additional hardware present in the board + select HAVE_SAUL_GPIO + select HAVE_SI7021 + source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/slstk3400a/Makefile.dep b/boards/slstk3400a/Makefile.dep index 36153f85fa..5f3ec86168 100644 --- a/boards/slstk3400a/Makefile.dep +++ b/boards/slstk3400a/Makefile.dep @@ -1,4 +1,5 @@ ifneq (,$(filter saul_default,$(USEMODULE))) + USEMODULE += efm32_coretemp USEMODULE += saul_gpio USEMODULE += si7021 endif diff --git a/boards/slstk3401a/Kconfig b/boards/slstk3401a/Kconfig index a92407ff77..46b0317a10 100644 --- a/boards/slstk3401a/Kconfig +++ b/boards/slstk3401a/Kconfig @@ -21,4 +21,10 @@ config BOARD_SLSTK3401A select HAS_PERIPH_UART select HAS_PERIPH_UART_MODECFG + select MODULE_SILABS_AEM if TEST_KCONFIG + select MODULE_SILABS_BC if TEST_KCONFIG + # additional hardware present in the board + select HAVE_SAUL_GPIO + select HAVE_SI7021 + source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/slstk3402a/Kconfig b/boards/slstk3402a/Kconfig index 51548cb3f2..002c78ab26 100644 --- a/boards/slstk3402a/Kconfig +++ b/boards/slstk3402a/Kconfig @@ -21,4 +21,10 @@ config BOARD_SLSTK3402A select HAS_PERIPH_UART select HAS_PERIPH_UART_MODECFG + select MODULE_SILABS_AEM if TEST_KCONFIG + select MODULE_SILABS_BC if TEST_KCONFIG + # additional hardware present in the board + select HAVE_SAUL_GPIO + select HAVE_SI7021 + source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/sltb001a/Kconfig b/boards/sltb001a/Kconfig index f84183f254..1c8f72e464 100644 --- a/boards/sltb001a/Kconfig +++ b/boards/sltb001a/Kconfig @@ -20,5 +20,12 @@ config BOARD_SLTB001A select HAS_PERIPH_TIMER select HAS_PERIPH_UART select HAS_PERIPH_UART_MODECFG + select MODULE_SILABS_PIC if TEST_KCONFIG + + # additional hardware present in the board + select HAVE_SAUL_GPIO + select HAVE_BMP280_I2C + select HAVE_CCS811 + select HAVE_SI7021 source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/slwstk6220a/Kconfig b/boards/slwstk6220a/Kconfig index 2042ff533c..de84fcaed7 100644 --- a/boards/slwstk6220a/Kconfig +++ b/boards/slwstk6220a/Kconfig @@ -23,4 +23,10 @@ config BOARD_SLWSTK6220A select HAS_PERIPH_UART select HAS_PERIPH_UART_MODECFG + select MODULE_SILABS_AEM if TEST_KCONFIG + select MODULE_SILABS_BC if TEST_KCONFIG + # additional hardware present in the board + select HAVE_SAUL_GPIO + select HAVE_SI7021 + source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/stk3200/Kconfig b/boards/stk3200/Kconfig index 5ef08d3b89..bcdf27c063 100644 --- a/boards/stk3200/Kconfig +++ b/boards/stk3200/Kconfig @@ -21,4 +21,7 @@ config BOARD_STK3200 select HAS_PERIPH_UART select HAS_PERIPH_UART_MODECFG + select HAVE_SAUL_GPIO + select MODULE_SILABS_BC if TEST_KCONFIG + source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/stk3600/Kconfig b/boards/stk3600/Kconfig index 56704c4d8f..f6f8580572 100644 --- a/boards/stk3600/Kconfig +++ b/boards/stk3600/Kconfig @@ -23,4 +23,8 @@ config BOARD_STK3600 select HAS_PERIPH_UART select HAS_PERIPH_UART_MODECFG + select HAVE_SAUL_GPIO + select MODULE_SILABS_AEM if TEST_KCONFIG + select MODULE_SILABS_BC if TEST_KCONFIG + source "$(RIOTBOARD)/common/silabs/Kconfig" diff --git a/boards/stk3700/Kconfig b/boards/stk3700/Kconfig index a083475c56..21a78fa765 100644 --- a/boards/stk3700/Kconfig +++ b/boards/stk3700/Kconfig @@ -23,4 +23,8 @@ config BOARD_STK3700 select HAS_PERIPH_UART select HAS_PERIPH_UART_MODECFG + select HAVE_SAUL_GPIO + select MODULE_SILABS_AEM if TEST_KCONFIG + select MODULE_SILABS_BC if TEST_KCONFIG + source "$(RIOTBOARD)/common/silabs/Kconfig"