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 <tomas.galbicka@nxp.com>
This commit is contained in:
Tomas Galbicka 2025-02-19 21:52:07 +01:00 committed by Benjamin Cabé
commit 74b93ba47b

View file

@ -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