forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig.power_manager
61 lines (50 loc) · 1.64 KB
/
Kconfig.power_manager
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# Copyright (c) 2021 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
menu "Power manager"
config CAF_POWER_MANAGER
bool "Enable power management"
select CAF_PM_EVENTS
select CAF_POWER_MANAGER_EVENTS
imply POWEROFF if !SOC_SERIES_NRF54HX
imply PM if SOC_SERIES_NRF54HX
imply PM_DEVICE
imply PM_DEVICE_RUNTIME if SOC_SERIES_NRF54HX
help
Enable power management, which will put the device to low-power mode
if it is idle.
The sys_poweroff API is not yet fully supported on nRF54H SoC Series.
Because of that, it's not enabled by default for now.
if CAF_POWER_MANAGER
config CAF_POWER_MANAGER_STAY_ON
bool "Stay on while no connections" if POWEROFF
default y if !POWEROFF
help
If disabled the device will switch SoC to OFF mode after power
manager timeout is done. If enabled the device will stay on
but remain idle. If the device is connected it will always stay on
and maintain the connection, regardless of the setting.
config CAF_POWER_MANAGER_TIMEOUT
int "Power down timeout [s]"
default 120
help
Time in seconds after which the device will enter low-power mode.
config CAF_POWER_MANAGER_ERROR_TIMEOUT
int "Power manager timeout on error [s]"
default 30
help
Time in seconds after which the device will be turned off after an error.
config CAF_POWER_MANAGER_CLEAR_RESET_REASON
bool "Clear RESETREAS on system_off"
default y
depends on !SOC_SERIES_NRF54HX
help
Clear RESETREAS on system_off to avoid starting serial recovery if nobody
has cleared it already.
module = CAF_POWER_MANAGER
module-str = power manager
source "subsys/logging/Kconfig.template.log_config"
endif
endmenu