blob: 1da0c8747846616626ea359790a51595235942b9 (
plain)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if PLATFORM_EC
config PLATFORM_EC_CONSOLE_CMD_SCRATCHPAD
bool "Console Command: scratchpad"
help
Enable the scratchpad console command. The scratchpad register
maintain its contents across a software-requested warm reset. The
command is used to set or get the scratchpad.
config PLATFORM_EC_CONSOLE_CMD_SYSINFO
bool "Console Command: sysinfo"
default y
help
Enable the sysinfo console command, which shows statistics
about the current image copy running, reset flags, etc.
config PLATFORM_EC_HIBERNATE
bool
help
Enable system hibernation.
The type of hibernation supported must be selected.
choice PLATFORM_EC_HIBERNATE_TYPE
prompt "Choose a hibernate type"
default PLATFORM_EC_HIBERNATE_PSL if DT_HAS_NUVOTON_NPCX_POWER_PSL_ENABLED && SOC_FAMILY_NPCX
default PLATFORM_EC_HIBERNATE_WAKE_PINS if !DT_HAS_NUVOTON_NPCX_POWER_PSL_ENABLED || !SOC_FAMILY_NPCX
help
Select the type of hibernation supported. Either
PLATFORM_EC_HIBERNATE_PSL (for power switch logic support) or
PLATFORM_EC_HIBERNATE_WAKE_PINS (using wake pins) are
supported.
config PLATFORM_EC_HIBERNATE_PSL
bool "System hibernating with PSL (Power Switch Logic) mechanism"
depends on DT_HAS_NUVOTON_NPCX_POWER_PSL_ENABLED
depends on SOC_FAMILY_NPCX
select PLATFORM_EC_HIBERNATE
help
Use PSL (Power Switch Logic) for hibernating. It turns off VCC power
rail for ultra-low power consumption and uses PSL inputs rely on VSBY
power rail to wake up ec and the whole system.
config PLATFORM_EC_HIBERNATE_WAKE_PINS
bool "System hibernating with wake-source pins"
select PLATFORM_EC_HIBERNATE
help
Use wake source pins for hibernating. It turns off VCC power
rail for ultra-low power consumption and uses a low power
power rail. Changes on wake source pins will wake up the EC.
endchoice # PLATFORM_EC_HIBERNATE_TYPE
config PLATFORM_EC_HIBERNATE_DELAY_SEC
int "Delay in seconds from AP power off to hibernate"
depends on PLATFORM_EC_HIBERNATE
default 3600
help
This value is the delay in seconds from when the AP enters G3
to when the system is hibernated.
config PLATFORM_EC_SYSTEM_PRE_INIT_PRIORITY
int "System pre-initialization priority"
default 20
range 0 99
help
This defines the initialization priority for the CROS
system_pre_init() function. system_pre_init() reads chip level reset
cause and stores it into the system reset flags. All drivers, except
those critical to determining the reset type, should be initialized at
lower priority so that the system reset flags are valid.
config PLATFORM_EC_FW_RESET_VECTOR
bool "Firmware Reset Vector chip specific retrieval"
default y if SOC_FAMILY_RISCV_ITE
help
This defines if there is a chip specific machanism for
retrieving the firmware reset vector. The function that
needs to be provided is system_get_fw_reset_vector that
will return the address of the reset vector.
config PLATFORM_EC_SYSTEM_SAFE_MODE
bool "Enable System Safe Mode"
default n
depends on (CPU_CORTEX_M || ARCH_POSIX)
help
This enables system safe mode for retrieving system state after
a panic occurs. System safe mode only runs briefly after a panic.
config PLATFORM_EC_SYSTEM_SAFE_MODE_TIMEOUT_MSEC
int "System safe mode timeout"
default 2000
depends on PLATFORM_EC_SYSTEM_SAFE_MODE
help
Safe mode will force a system reset after this timeout. The system may
reset sooner if all safe mode tasks are completed before the timeout.
config PLATFORM_EC_SYSTEM_SAFE_MODE_PRINT_STACK
bool "Print stack to log after panic"
default y
depends on PLATFORM_EC_SYSTEM_SAFE_MODE
help
Prints the stack of the faulting thread to the console buffer in
system safe mode.
config PLATFORM_EC_HOST_COMMAND_MEMORY_DUMP
bool "Enable Memory Dump Host Commands"
select THREAD_STACK_INFO
help
Enables fetching a memory dump using host commands. This is useful when
debugging panics. May not dump all memory, e.g. sensitive memory will
not be dumped.
endif # PLATFORM_EC
|