From 5054bdc78620acd887db50315b5a9f3e1295ad50 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Fri, 26 Nov 2021 15:03:56 +0100 Subject: [PATCH] cpu/lpc23xx: model Kconfig --- cpu/lpc23xx/Kconfig | 2 ++ cpu/lpc23xx/Makefile.features | 6 ++++++ cpu/lpc23xx/lpc23xx.config | 1 + cpu/lpc23xx/mci/Kconfig | 1 + 4 files changed, 10 insertions(+) create mode 100644 cpu/lpc23xx/lpc23xx.config diff --git a/cpu/lpc23xx/Kconfig b/cpu/lpc23xx/Kconfig index e44ce63356..2f15b8d2aa 100644 --- a/cpu/lpc23xx/Kconfig +++ b/cpu/lpc23xx/Kconfig @@ -17,6 +17,8 @@ config CPU_FAM_LPC23XX select HAS_PERIPH_TIMER_PERIODIC select HAS_PERIPH_RTC_MS + select MODULE_BITFIELD if TEST_KCONFIG + ## CPU Models config CPU_MODEL_LPC2387 bool diff --git a/cpu/lpc23xx/Makefile.features b/cpu/lpc23xx/Makefile.features index 850654fb2d..db4d1b2df8 100644 --- a/cpu/lpc23xx/Makefile.features +++ b/cpu/lpc23xx/Makefile.features @@ -7,3 +7,9 @@ FEATURES_PROVIDED += periph_timer_periodic FEATURES_PROVIDED += periph_rtc_ms include $(RIOTCPU)/arm7_common/Makefile.features + +# This configuration enables modules that are only available when using Kconfig +# module modelling +ifeq (1, $(TEST_KCONFIG)) + KCONFIG_ADD_CONFIG += $(RIOTCPU)/lpc23xx/lpc23xx.config +endif diff --git a/cpu/lpc23xx/lpc23xx.config b/cpu/lpc23xx/lpc23xx.config new file mode 100644 index 0000000000..811b1f3712 --- /dev/null +++ b/cpu/lpc23xx/lpc23xx.config @@ -0,0 +1 @@ +CONFIG_MODULE_PM_LAYERED=y diff --git a/cpu/lpc23xx/mci/Kconfig b/cpu/lpc23xx/mci/Kconfig index 22ae4d913b..558755eb1c 100644 --- a/cpu/lpc23xx/mci/Kconfig +++ b/cpu/lpc23xx/mci/Kconfig @@ -9,3 +9,4 @@ config MODULE_MCI bool "LPC23XX Multimedia Card Interface (MCI) driver" depends on CPU_FAM_LPC23XX depends on TEST_KCONFIG + select MODULE_XTIMER