Skip to content

Commit 738549e

Browse files
nordic-krchkartben
authored andcommitted
modules: hal_nordic: nrfx: Move some defines back to CMakeLists
534916c moved some defines from CMakeLists.txt to nrfx_kconfig.h but those defines are used by MDK which does not include nrfx_kconfig.h and that broke some nrf platforms (e.g. nrf54l20). Moving those defines back to CMakeLists.txt. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 9c574ed commit 738549e

File tree

2 files changed

+10
-20
lines changed

2 files changed

+10
-20
lines changed

modules/hal_nordic/nrfx/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,16 @@ if(CONFIG_SOC_NRF54L_CPUAPP_COMMON)
188188
zephyr_compile_definitions("NRF_CONFIG_CPU_FREQ_MHZ=${clock_frequency_mhz}")
189189
endif()
190190

191+
zephyr_compile_definitions_ifdef(CONFIG_SOC_NRF54LX_SKIP_CLOCK_CONFIG NRF_SKIP_CLOCK_CONFIGURATION)
192+
zephyr_compile_definitions_ifdef(CONFIG_SOC_NRF54LX_DISABLE_FICR_TRIMCNF NRF_DISABLE_FICR_TRIMCNF)
193+
zephyr_compile_definitions_ifdef(CONFIG_SOC_NRF54LX_SKIP_GLITCHDETECTOR_DISABLE NRF_SKIP_GLITCHDETECTOR_DISABLE)
194+
195+
# Inject code to skip TAMPC setup for nRF54L20 and nRF54L09. It is not supported for now.
196+
# It needs to be removed when support is provided.
197+
if(CONFIG_SOC_NRF54L20_ENGA_CPUAPP OR CONFIG_SOC_NRF54L09_ENGA_CPUAPP)
198+
zephyr_compile_definitions(NRF_SKIP_TAMPC_SETUP)
199+
endif()
200+
191201
if(CONFIG_SOC_COMPATIBLE_NRF54LX AND CONFIG_NRFX_GPPI)
192202
zephyr_library_sources(${HELPERS_DIR}/nrfx_gppi_dppi_ppib_lumos.c)
193203
zephyr_library_sources(${NRFX_DIR}/soc/interconnect/dppic_ppib/nrfx_interconnect_dppic_ppib.c)

modules/hal_nordic/nrfx/nrfx_kconfig.h

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -964,26 +964,6 @@
964964
CONFIG_NRF52_ANOMALY_109_WORKAROUND_EGU_INSTANCE
965965
#endif
966966

967-
#ifdef CONFIG_SOC_NRF54LX_SKIP_CLOCK_CONFIG
968-
#define NRF_SKIP_CLOCK_CONFIGURATION
969-
#endif
970-
971-
#ifdef CONFIG_SOC_NRF54LX_DISABLE_FICR_TRIMCNF
972-
#define NRF_DISABLE_FICR_TRIMCNF
973-
#endif
974-
975-
#ifdef CONFIG_SOC_NRF54LX_SKIP_GLITCHDETECTOR_DISABLE
976-
#define NRF_SKIP_GLITCHDETECTOR_DISABLE
977-
#endif
978-
979-
/*
980-
* Inject code to skip TAMPC setup for nRF54L20 and nRF54L09. It is not supported for now.
981-
* It needs to be removed when support is provided.
982-
*/
983-
#if defined(CONFIG_SOC_NRF54L20_ENGA_CPUAPP) || defined(CONFIG_SOC_NRF54L09_ENGA_CPUAPP)
984-
#define NRF_SKIP_TAMPC_SETUP
985-
#endif
986-
987967
#if DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_dppic_global) || \
988968
DT_HAS_COMPAT_STATUS_OKAY(nordic_nrf_dppic_local)
989969
#ifndef NRFX_DPPI_ENABLED

0 commit comments

Comments
 (0)