From 01b43074ab2451a5e17d770c4d62d8d3bba781e5 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Mon, 19 Feb 2024 16:17:29 +0100 Subject: [PATCH] modules: hal_nordic: add support for EGU020 Add HAL glue code to support EGU020. Signed-off-by: Gerard Marull-Paretas --- modules/hal_nordic/nrfx/Kconfig | 5 +++++ modules/hal_nordic/nrfx/nrfx_config.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/modules/hal_nordic/nrfx/Kconfig b/modules/hal_nordic/nrfx/Kconfig index 34dbb43f3d4..88b19159730 100644 --- a/modules/hal_nordic/nrfx/Kconfig +++ b/modules/hal_nordic/nrfx/Kconfig @@ -62,6 +62,11 @@ config NRFX_EGU5 depends on $(dt_nodelabel_has_compat,egu5,$(DT_COMPAT_NORDIC_NRF_EGU)) select NRFX_EGU +config NRFX_EGU020 + bool "EGU020 driver instance" + depends on $(dt_nodelabel_has_compat,egu020,$(DT_COMPAT_NORDIC_NRF_EGU)) + select NRFX_EGU + config NRFX_GPIOTE bool diff --git a/modules/hal_nordic/nrfx/nrfx_config.h b/modules/hal_nordic/nrfx/nrfx_config.h index 0f52cd17cf2..5ec7b137703 100644 --- a/modules/hal_nordic/nrfx/nrfx_config.h +++ b/modules/hal_nordic/nrfx/nrfx_config.h @@ -108,6 +108,9 @@ #ifdef CONFIG_NRFX_EGU5 #define NRFX_EGU5_ENABLED 1 #endif +#ifdef CONFIG_NRFX_EGU020 +#define NRFX_EGU020_ENABLED 1 +#endif #ifdef CONFIG_NRFX_GRTC #define NRFX_GRTC_ENABLED 1