blob: 8081509f1298f9efbf06937089548c87e349518c (
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
|
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Please keep these tasks in alphabetical order
menu "Tasks"
config HAS_TASK_CHARGER
bool "Charger task"
help
This turns on the charger task. This deals with monitoring the
battery to make sure it is present and is responding properly to
requests. If the battery is not full, it enables charging from a
suitable power source.
if HAS_TASK_CHARGER
config TASK_CHARGER_STACK_SIZE
hex "Stack size"
default 0x400 # EC uses VENTI_TASK_STACK_SIZE which is 896
help
The stack size of the charger task.
See b/176180736 for checking these stack sizes.
endif # HAS_TASK_CHARGER
config HAS_TASK_CHIPSET
bool "Chipset task"
depends on PLATFORM_EC_POWERSEQ
help
This turns on the chipset task which handles powering the chipset
on and off. Powering on involves going through a sequence of enabling
different power rails (e.g. by enabling GPIOs that control a PMIC)
and monitoring power-good indicators to meet the specifications
defined by the vendor.
if HAS_TASK_CHIPSET
config TASK_CHIPSET_STACK_SIZE
hex "Stack size"
default 0x200
help
The stack size of the power button task.
endif # HAS_TASK_CHIPSET
config HAS_TASK_KEYPROTO
bool "Keyboard-protocol task (x86)"
depends on PLATFORM_EC_KEYBOARD_PROTOCOL_8042
help
This turns on the keyproto task which handles conversion of keyboard
scans into i8042 messages on x86 platforms. This is not used or needed
on ARM platforms, which send the raw keyboard scans to the AP for
processing.
if HAS_TASK_KEYPROTO
config TASK_KEYPROTO_STACK_SIZE
hex "Stack size"
default 0x200
help
The stack size of the keyproto task.
endif # HAS_TASK_KEYPROTO
config HAS_TASK_KEYSCAN
bool "Keyboard-scanning task"
depends on PLATFORM_EC_KEYBOARD
help
This turns on the keyscan task which handles scanning the keyboard
and producing a list of changes in the key state. This list can either
be sent to the keyboard-protocol task or directly to the AP for
processing.
if HAS_TASK_KEYSCAN
config TASK_KEYSCAN_STACK_SIZE
hex "Stack size"
default 0x200
help
The stack size of the keyscan task.
endif # HAS_TASK_KEYSCAN
config HAS_TASK_POWERBTN
bool "Power-button task (x86)"
depends on PLATFORM_EC_POWER_BUTTON
help
This turns on the powerbtn task which handles monitoring the power
button. When the application processor (AP) is off (S5 or G3 states),
this task triggers a power-up sequence on a power-button press. When
the AP is on (S3 or above state) x86 machines normally reset when the
power button is held for 4 seconds but this tasks adjusts that to 8
seconds, to allow time for the usual Chromium OS shutdown sequence.
if HAS_TASK_POWERBTN
config TASK_POWERBTN_STACK_SIZE
hex "Stack size"
default 0x200
help
The stack size of the power-button task.
endif # HAS_TASK_POWERBTN
endmenu # Tasks
|