Debian Codegraph @

src/ec/starlabs/merlin/Kconfig

raw
1 ## SPDX-License-Identifier: GPL-2.0-only
2
3 config EC_STARLABS_NUVOTON
4 bool
5 select EC_ACPI
6 help
7 Interface to Nuvoton embedded controller principally in Star Labs notebooks.
8
9 config EC_STARLABS_ITE
10 bool
11 select EC_ACPI
12 help
13 Interface to ITE embedded controller principally in Star Labs notebooks.
14 Works with closed-source ITE firmware versions:
15 TGL - 1.00 or later
16 CML - 1.04 or later
17 KBL - 3.12 or later
18 And open-source Merlin firmware version 1.00 or later
19
20 config EC_STARLABS_NEED_ITE_BIN
21 bool
22 depends on EC_STARLABS_ITE
23 help
24 Select if the mainboard requires EC firmware in the main flash chip.
25
26 config EC_STARLABS_ADD_ITE_BIN
27 bool "Add Star Labs EC binary file"
28 default n
29 depends on EC_STARLABS_NEED_ITE_BIN
30 help
31 Select to add an EC firmware binary into the coreboot image. EC firmware
32 is necessary, flashing a coreboot image without EC firmware will render
33 your laptop unusable.
34
35 config EC_STARLABS_ITE_BIN_PATH
36 string "Star Labs EC binary file path"
37 depends on EC_STARLABS_ADD_ITE_BIN
38
39 config EC_STARLABS_KBL_LEVELS
40 bool
41 default n
42 depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON
43 help
44 Select if the mainboard supports multiple levels of brightness for the keyboard.
45
46 config EC_STARLABS_FAN
47 bool
48 default n
49 depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON
50 help
51 Select if the mainboard has a fan.
52
53 config EC_STARLABS_FAST_CHARGE
54 bool
55 default n
56 depends on EC_STARLABS_NUVOTON
57 help
58 Select if the mainboard supports fast charging.
59
60 config EC_STARLABS_MAX_CHARGE
61 bool
62 default n
63 depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON
64 help
65 Select if the mainboard supports limiting the maximum charge of the battery.
66
67 config EC_STARLABS_CHARGING_SPEED
68 bool "Enable setting the charging speed"
69 depends on EC_STARLABS_MERLIN
70 help
71 Select if the mainboard supports configuring the charging speed.
72
73 config EC_STARLABS_LID_SWITCH
74 bool "Enable disabling the lid switch"
75 depends on EC_STARLABS_ITE
76 help
77 Select if the mainboard supports disabling the lid switch
78
79 config EC_STARLABS_POWER_LED
80 bool "Enable lowering the brightess of the Power LED"
81 depends on EC_STARLABS_ITE
82 help
83 Selec the in the mainboard supports reducing the LED brightness
84
85 config EC_STARLABS_MERLIN
86 bool "Use open-source Merlin EC Firmware"
87 default n
88 depends on EC_STARLABS_ITE
89 help
90 Use open source embedded controller firmware. Both firmwares have the
91 same features but differ in licensing and compilers.
92
93 config EC_VARIANT_DIR
94 string
95 default "merlin" if EC_STARLABS_MERLIN
96
97 config EC_GPE_SCI
98 hex
99 default 0x50
100
101 config EC_STARLABS_BATTERY_MODEL
102 string
103 default "Unknown"
104
105 config EC_STARLABS_BATTERY_TYPE
106 string
107 default "LION"
108
109 config EC_STARLABS_BATTERY_OEM
110 string
111 default "Unknown"