blob: ec0333ec35e58724a5cb51b28e7830c9ba70ba70 (
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
|
# 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.
endif # PLATFORM_EC
|