From 3dd2b0d8b3da9a3650078b535b31b0c28a73d071 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 19 Feb 2024 16:14:56 +0100 Subject: [PATCH] modules: hal_nordic: add support for RTC130-131 Add new HAL glue Kconfig options for RTC130-131. Signed-off-by: Gerard Marull-Paretas --- modules/hal_nordic/nrfx/Kconfig | 10 ++++++++++ modules/hal_nordic/nrfx/nrfx_config.h | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/modules/hal_nordic/nrfx/Kconfig b/modules/hal_nordic/nrfx/Kconfig index 784a2087139..34dbb43f3d4 100644 --- a/modules/hal_nordic/nrfx/Kconfig +++ b/modules/hal_nordic/nrfx/Kconfig @@ -238,6 +238,16 @@ config NRFX_RTC2 depends on $(dt_nodelabel_has_compat,rtc2,$(DT_COMPAT_NORDIC_NRF_RTC)) select NRFX_RTC +config NRFX_RTC130 + bool "RTC130 driver instance" + depends on $(dt_nodelabel_has_compat,rtc130,$(DT_COMPAT_NORDIC_NRF_RTC)) + select NRFX_RTC + +config NRFX_RTC131 + bool "RTC131 driver instance" + depends on $(dt_nodelabel_has_compat,rtc131,$(DT_COMPAT_NORDIC_NRF_RTC)) + select NRFX_RTC + config NRFX_SAADC bool "SAADC driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SAADC)) diff --git a/modules/hal_nordic/nrfx/nrfx_config.h b/modules/hal_nordic/nrfx/nrfx_config.h index 20facba229c..0f52cd17cf2 100644 --- a/modules/hal_nordic/nrfx/nrfx_config.h +++ b/modules/hal_nordic/nrfx/nrfx_config.h @@ -299,6 +299,12 @@ #ifdef CONFIG_NRFX_RTC2 #define NRFX_RTC2_ENABLED 1 #endif +#ifdef CONFIG_NRFX_RTC130 +#define NRFX_RTC130_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_RTC131 +#define NRFX_RTC131_ENABLED 1 +#endif #ifdef CONFIG_NRFX_SAADC #define NRFX_SAADC_ENABLED 1