From 9711b37e7b490dcaceb3b9bd1df57fcb6840de82 Mon Sep 17 00:00:00 2001 From: Nikodem Kastelik Date: Fri, 12 Apr 2024 13:46:45 +0200 Subject: [PATCH] modules: hal_nordic: nrfx: add support for nRF54 TWIS Add Kconfig-to-nrfx symbol redefinitions so that TWIS instances found on nRF54H20 and nRF54L15 devices are supported. Signed-off-by: Nikodem Kastelik --- modules/hal_nordic/nrfx/Kconfig | 60 +++++++++++++++++++++++++++ modules/hal_nordic/nrfx/nrfx_config.h | 36 ++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/modules/hal_nordic/nrfx/Kconfig b/modules/hal_nordic/nrfx/Kconfig index ba36da42a1..32386d5427 100644 --- a/modules/hal_nordic/nrfx/Kconfig +++ b/modules/hal_nordic/nrfx/Kconfig @@ -771,6 +771,66 @@ config NRFX_TWIS3 depends on $(dt_nodelabel_has_compat,i2c3,$(DT_COMPAT_NORDIC_NRF_TWIS)) select NRFX_TWIS +config NRFX_TWIS20 + bool "TWIS20 driver instance" + depends on $(dt_nodelabel_has_compat,i2c20,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + +config NRFX_TWIS21 + bool "TWIS21 driver instance" + depends on $(dt_nodelabel_has_compat,i2c21,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + +config NRFX_TWIS22 + bool "TWIS22 driver instance" + depends on $(dt_nodelabel_has_compat,i2c22,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + +config NRFX_TWIS30 + bool "TWIS30 driver instance" + depends on $(dt_nodelabel_has_compat,i2c30,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + +config NRFX_TWIS130 + bool "TWIS130 driver instance" + depends on $(dt_nodelabel_has_compat,i2c130,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + +config NRFX_TWIS131 + bool "TWIS131 driver instance" + depends on $(dt_nodelabel_has_compat,i2c131,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + +config NRFX_TWIS132 + bool "TWIS132 driver instance" + depends on $(dt_nodelabel_has_compat,i2c132,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + +config NRFX_TWIS133 + bool "TWIS133 driver instance" + depends on $(dt_nodelabel_has_compat,i2c133,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + +config NRFX_TWIS134 + bool "TWIS134 driver instance" + depends on $(dt_nodelabel_has_compat,i2c134,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + +config NRFX_TWIS135 + bool "TWIS135 driver instance" + depends on $(dt_nodelabel_has_compat,i2c135,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + +config NRFX_TWIS136 + bool "TWIS136 driver instance" + depends on $(dt_nodelabel_has_compat,i2c136,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + +config NRFX_TWIS137 + bool "TWIS137 driver instance" + depends on $(dt_nodelabel_has_compat,i2c137,$(DT_COMPAT_NORDIC_NRF_TWIS)) + select NRFX_TWIS + config NRFX_UART bool diff --git a/modules/hal_nordic/nrfx/nrfx_config.h b/modules/hal_nordic/nrfx/nrfx_config.h index ef5cb07981..284147ba00 100644 --- a/modules/hal_nordic/nrfx/nrfx_config.h +++ b/modules/hal_nordic/nrfx/nrfx_config.h @@ -679,6 +679,42 @@ #ifdef CONFIG_NRFX_TWIS3 #define NRFX_TWIS3_ENABLED 1 #endif +#ifdef CONFIG_NRFX_TWIS20 +#define NRFX_TWIS20_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_TWIS21 +#define NRFX_TWIS21_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_TWIS22 +#define NRFX_TWIS22_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_TWIS30 +#define NRFX_TWIS30_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_TWIS130 +#define NRFX_TWIS130_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_TWIS131 +#define NRFX_TWIS131_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_TWIS132 +#define NRFX_TWIS132_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_TWIS133 +#define NRFX_TWIS133_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_TWIS134 +#define NRFX_TWIS134_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_TWIS135 +#define NRFX_TWIS135_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_TWIS136 +#define NRFX_TWIS136_ENABLED 1 +#endif +#ifdef CONFIG_NRFX_TWIS137 +#define NRFX_TWIS137_ENABLED 1 +#endif #ifdef CONFIG_NRFX_UART #define NRFX_UART_ENABLED 1