From 74b93ba47b694515d644e3c83092c3af882ed158 Mon Sep 17 00:00:00 2001 From: Tomas Galbicka Date: Wed, 19 Feb 2025 21:52:07 +0100 Subject: [PATCH] soc: NXP RT1180 fix trdc permissions set multicore This commits repairs calling function trdc_enable_all_access() only when using build for standalone CM33 or CM7 core build. For the multicore this function should be called only by CM33 core. Signed-off-by: Tomas Galbicka --- soc/nxp/imxrt/imxrt118x/soc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/soc/nxp/imxrt/imxrt118x/soc.c b/soc/nxp/imxrt/imxrt118x/soc.c index 3aad5b6ee3e..f608c23c74a 100644 --- a/soc/nxp/imxrt/imxrt118x/soc.c +++ b/soc/nxp/imxrt/imxrt118x/soc.c @@ -59,14 +59,14 @@ LOG_MODULE_REGISTER(soc, CONFIG_SOC_LOG_LEVEL); #define EDMA_DID 0x7U /* When CM33 sets TRDC, CM7 must NOT require TRDC ownership from ELE */ -#if defined(CONFIG_SECOND_CORE_MCUX) && defined(CONFIG_SOC_MIMXRT1189_CM33) +#if defined(CONFIG_SECOND_CORE_MCUX) && defined(CONFIG_SOC_MIMXRT1189_CM7) /* When CONFIG_SECOND_CORE_MCUX then TRDC(AON/WAKEUP) ownership cannot be released * to CM33 and CM7 both in one ELE reset cycle. * Only CM33 will set TRDC. */ -#define CM33_SET_TRDC 1U -#else #define CM33_SET_TRDC 0U +#else +#define CM33_SET_TRDC 1U #endif #ifdef CONFIG_INIT_ARM_PLL