File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ config SOC_SERIES_NRF53X
8
8
select ARM
9
9
select SOC_COMPATIBLE_NRF53X
10
10
select SOC_EARLY_INIT_HOOK
11
- select SOC_LATE_INIT_HOOK
11
+ select SOC_LATE_INIT_HOOK if SOC_NRF53_RTC_PRETICK || SOC_NRF53_CPUNET_ENABLE
12
12
select CPU_CORTEX_M33
13
13
select CPU_CORTEX_M_HAS_DWT
14
14
select CPU_HAS_ARM_MPU
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ void nrf53_cpunet_enable(bool on)
101
101
}
102
102
103
103
#ifdef CONFIG_SOC_NRF53_CPUNET_ENABLE
104
- static int nrf53_cpunet_init (void )
104
+ void nrf53_cpunet_init (void )
105
105
{
106
106
#if !defined(CONFIG_TRUSTED_EXECUTION_NONSECURE )
107
107
/* Retain nRF5340 Network MCU in Secure domain (bus
@@ -120,9 +120,5 @@ static int nrf53_cpunet_init(void)
120
120
121
121
nrf53_cpunet_enable (true);
122
122
#endif /* !CONFIG_TRUSTED_EXECUTION_SECURE */
123
-
124
- return 0 ;
125
123
}
126
-
127
- SYS_INIT (nrf53_cpunet_init , POST_KERNEL , CONFIG_KERNEL_INIT_PRIORITY_DEVICE );
128
124
#endif /* CONFIG_SOC_NRF53_CPUNET_ENABLE */
Original file line number Diff line number Diff line change 28
28
*/
29
29
void nrf53_cpunet_enable (bool on );
30
30
31
+ /**
32
+ * @brief Configure the security setting of the network CPU and then enable it.
33
+ */
34
+ void nrf53_cpunet_init (void );
35
+
31
36
#endif /* NRF53_CPUNET_MGMT_H__ */
Original file line number Diff line number Diff line change 38
38
39
39
#include <cmsis_core.h>
40
40
41
+ #include "nrf53_cpunet_mgmt.h"
42
+
41
43
#define PIN_XL1 0
42
44
#define PIN_XL2 1
43
45
@@ -562,6 +564,9 @@ void soc_late_init_hook(void)
562
564
(void )err ;
563
565
#endif
564
566
567
+ #ifdef CONFIG_SOC_NRF53_CPUNET_ENABLE
568
+ nrf53_cpunet_init ();
569
+ #endif
565
570
}
566
571
567
572
void arch_busy_wait (uint32_t time_us )
You can’t perform that action at this time.
0 commit comments