1 /*
2  * Copyright (c) 2023 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 /**
8  * @file SoC extensions of cpu_idle.S for the Nordic Semiconductor nRF53 processors family.
9  */
10 
11 #define SOC_ON_EXIT_CPU_IDLE_4 \
12 	__NOP(); \
13 	__NOP(); \
14 	__NOP(); \
15 	__NOP();
16 #define SOC_ON_EXIT_CPU_IDLE_8 \
17 	SOC_ON_EXIT_CPU_IDLE_4 \
18 	SOC_ON_EXIT_CPU_IDLE_4
19 
20 #if defined(CONFIG_SOC_NRF53_ANOMALY_168_WORKAROUND_FOR_EXECUTION_FROM_RAM)
21 #define SOC_ON_EXIT_CPU_IDLE \
22 	SOC_ON_EXIT_CPU_IDLE_8; \
23 	SOC_ON_EXIT_CPU_IDLE_8; \
24 	SOC_ON_EXIT_CPU_IDLE_8; \
25 	__NOP(); \
26 	__NOP();
27 #elif defined(CONFIG_SOC_NRF53_ANOMALY_168_WORKAROUND)
28 #define SOC_ON_EXIT_CPU_IDLE SOC_ON_EXIT_CPU_IDLE_8
29 #endif
30