From 4b56c74e1c1e7c0f9eb4857e45ddbc22db239326 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Mon, 13 Jan 2025 17:49:12 +0100 Subject: [PATCH] modules: hal_nordic: Support new CRACEN CTR DRBG driver Add support for the new nrf hal CRACEN CTR DRBG driver including a new kconfig option to enable it. Signed-off-by: Alberto Escolar Piedras --- modules/hal_nordic/nrfx/CMakeLists.txt | 1 + modules/hal_nordic/nrfx/Kconfig | 4 ++++ modules/hal_nordic/nrfx/nrfx_kconfig.h | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/modules/hal_nordic/nrfx/CMakeLists.txt b/modules/hal_nordic/nrfx/CMakeLists.txt index 0954f111618..9461966fdf7 100644 --- a/modules/hal_nordic/nrfx/CMakeLists.txt +++ b/modules/hal_nordic/nrfx/CMakeLists.txt @@ -122,6 +122,7 @@ zephyr_library_sources_ifdef(CONFIG_NRFX_PRS ${SRC_DIR}/prs/nrfx_prs.c) zephyr_library_sources_ifdef(CONFIG_NRFX_ADC ${SRC_DIR}/nrfx_adc.c) zephyr_library_sources_ifdef(CONFIG_NRFX_CLOCK ${SRC_DIR}/nrfx_clock.c) zephyr_library_sources_ifdef(CONFIG_NRFX_COMP ${SRC_DIR}/nrfx_comp.c) +zephyr_library_sources_ifdef(CONFIG_NRFX_CRACEN ${SRC_DIR}/nrfx_cracen.c) zephyr_library_sources_ifdef(CONFIG_NRFX_DPPI ${SRC_DIR}/nrfx_dppi.c) zephyr_library_sources_ifdef(CONFIG_NRFX_EGU ${SRC_DIR}/nrfx_egu.c) zephyr_library_sources_ifdef(CONFIG_NRFX_GPIOTE ${SRC_DIR}/nrfx_gpiote.c) diff --git a/modules/hal_nordic/nrfx/Kconfig b/modules/hal_nordic/nrfx/Kconfig index 8e407038a9f..14e5c47e858 100644 --- a/modules/hal_nordic/nrfx/Kconfig +++ b/modules/hal_nordic/nrfx/Kconfig @@ -25,6 +25,10 @@ config NRFX_COMP bool "COMP driver" depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_COMP)) +config NRFX_CRACEN + bool "CRACEN drivers" + depends on SOC_COMPATIBLE_NRF54LX + config NRFX_DPPI bool diff --git a/modules/hal_nordic/nrfx/nrfx_kconfig.h b/modules/hal_nordic/nrfx/nrfx_kconfig.h index 1eb51f99724..d36b3617b07 100644 --- a/modules/hal_nordic/nrfx/nrfx_kconfig.h +++ b/modules/hal_nordic/nrfx/nrfx_kconfig.h @@ -75,6 +75,10 @@ #define NRFX_COMP_CONFIG_LOG_ENABLED 1 #endif +#ifdef CONFIG_NRFX_CRACEN +#define NRFX_CRACEN_ENABLED 1 +#endif + #ifdef CONFIG_NRFX_DPPI #define NRFX_DPPI_ENABLED 1 #endif