modules: hal_nordic: add support for RTC130-131

Add new HAL glue Kconfig options for RTC130-131.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2024-02-19 16:14:56 +01:00 committed by Carles Cufí
commit 3dd2b0d8b3
2 changed files with 16 additions and 0 deletions

View file

@ -238,6 +238,16 @@ config NRFX_RTC2
depends on $(dt_nodelabel_has_compat,rtc2,$(DT_COMPAT_NORDIC_NRF_RTC)) depends on $(dt_nodelabel_has_compat,rtc2,$(DT_COMPAT_NORDIC_NRF_RTC))
select NRFX_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 config NRFX_SAADC
bool "SAADC driver" bool "SAADC driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SAADC)) depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_SAADC))

View file

@ -299,6 +299,12 @@
#ifdef CONFIG_NRFX_RTC2 #ifdef CONFIG_NRFX_RTC2
#define NRFX_RTC2_ENABLED 1 #define NRFX_RTC2_ENABLED 1
#endif #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 #ifdef CONFIG_NRFX_SAADC
#define NRFX_SAADC_ENABLED 1 #define NRFX_SAADC_ENABLED 1