File tree Expand file tree Collapse file tree 5 files changed +27
-12
lines changed Expand file tree Collapse file tree 5 files changed +27
-12
lines changed Original file line number Diff line number Diff line change @@ -39,4 +39,5 @@ if(CONFIG_TFM_PARTITION_PLATFORM)
39
39
endif ()
40
40
41
41
zephyr_library_sources_ifdef(CONFIG_NRF_SYS_EVENT nrf_sys_event.c)
42
+ zephyr_library_sources_ifdef(CONFIG_SOC_NRF_FORCE_CONSTLAT nrf_constlat.c)
42
43
zephyr_library_sources_ifdef(CONFIG_MRAM_LATENCY mram_latency.c)
Original file line number Diff line number Diff line change @@ -21,6 +21,15 @@ config NRF_SYS_EVENT
21
21
bool "nRF system event support"
22
22
select NRFX_POWER if !NRF_PLATFORM_HALTIUM
23
23
24
+ config SOC_NRF_FORCE_CONSTLAT
25
+ bool "Force constant latency mode in system ON"
26
+ depends on NRF_SYS_EVENT && !RISCV
27
+ help
28
+ In constant latency mode the CPU wakeup latency and the PPI task response
29
+ will be constant and kept at a minimum. This is secured by forcing a set
30
+ of base resources on while in sleep. The advantage of having a constant
31
+ and predictable latency will be at the cost of having increased power consumption.
32
+
24
33
config MRAM_LATENCY
25
34
bool "MRAM latency manager"
26
35
depends on NRFS_HAS_MRAM_SERVICE
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 Embeint Pty Ltd
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ #include <zephyr/init.h>
8
+
9
+ #include <nrf_sys_event.h>
10
+
11
+ static int nrf_const_lat (void )
12
+ {
13
+ return nrf_sys_event_request_global_constlat ();
14
+ }
15
+
16
+ /* Immediately after the SoC init functions */
17
+ SYS_INIT (nrf_const_lat , PRE_KERNEL_1 , 1 );
Original file line number Diff line number Diff line change @@ -76,14 +76,6 @@ config SOC_NRF54LX_SKIP_GLITCHDETECTOR_DISABLE
76
76
With this option, the glitch detector is not disabled during system initialization.
77
77
The CPU runs with the default state of glitch detector.
78
78
79
- config SOC_NRF_FORCE_CONSTLAT
80
- bool "Force constant-latency mode"
81
- help
82
- In constant latency mode the CPU wakeup latency and the PPI task response
83
- will be constant and kept at a minimum. This is secured by forcing a set
84
- of base resources on while in sleep. The advantage of having a constant
85
- and predictable latency will be at the cost of having increased power consumption.
86
-
87
79
config SOC_NRF54L_ANOMALY_56_WORKAROUND
88
80
bool "Apply workaround 56 for nRF54L SoCs"
89
81
default y
Original file line number Diff line number Diff line change @@ -138,10 +138,6 @@ static inline void power_and_clock_configuration(void)
138
138
nrf_oscillators_hfxo_cap_set (NRF_OSCILLATORS , false, 0 );
139
139
#endif
140
140
141
- if (IS_ENABLED (CONFIG_SOC_NRF_FORCE_CONSTLAT )) {
142
- nrf_power_task_trigger (NRF_POWER , NRF_POWER_TASK_CONSTLAT );
143
- }
144
-
145
141
#if (DT_PROP (DT_NODELABEL (vregmain ), regulator_initial_mode ) == NRF5X_REG_MODE_DCDC )
146
142
nrf_regulators_vreg_enable_set (NRF_REGULATORS , NRF_REGULATORS_VREG_MAIN , true);
147
143
#endif
You can’t perform that action at this time.
0 commit comments