blob: 5939854d1d7c046b9f726fe3645bcf981f4a97a3 [file] [log] [blame]
Sean Rhodes296994b2021-10-14 20:58:15 +01001## SPDX-License-Identifier: GPL-2.0-only
2
Sean Rhodes78342982022-03-09 08:23:29 +00003config EC_STARLABS_NUVOTON
4 bool
5 select EC_ACPI
6 help
7 Interface to Nuvoton embedded controller principally in Star Labs notebooks.
8
Sean Rhodes296994b2021-10-14 20:58:15 +01009config 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
20config 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
26config 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
35config EC_STARLABS_ITE_BIN_PATH
36 string "Star Labs EC binary file path"
37 depends on EC_STARLABS_ADD_ITE_BIN
38
39config EC_STARLABS_KBL_LEVELS
40 bool
41 default n
Sean Rhodes78342982022-03-09 08:23:29 +000042 depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON
Sean Rhodes296994b2021-10-14 20:58:15 +010043 help
44 Select if the mainboard supports multiple levels of brightness for the keyboard.
45
46config EC_STARLABS_FAN
47 bool
48 default n
Sean Rhodes78342982022-03-09 08:23:29 +000049 depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON
Sean Rhodes296994b2021-10-14 20:58:15 +010050 help
51 Select if the mainboard has a fan.
52
Sean Rhodes8de7c012022-07-31 17:35:28 +010053config 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
Sean Rhodes4d1bf7b2022-02-17 13:55:34 +000060config EC_STARLABS_MAX_CHARGE
61 bool
62 default n
Sean Rhodes78342982022-03-09 08:23:29 +000063 depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON
Sean Rhodes4d1bf7b2022-02-17 13:55:34 +000064 help
65 Select if the mainboard supports limiting the maximum charge of the battery.
66
Sean Rhodes0579c602023-02-16 15:00:14 +000067config EC_STARLABS_MIRROR_SUPPORT
68 bool "Enable mirror flag support"
69 default n
70 depends on EC_STARLABS_ITE
71 help
72 Select if the EC should mirror the EC firmware contained in the coreboot ROM.
73
74config EC_STARLABS_MIRROR_VERSION
75 hex "Version of the EC firmware that should be installed."
76 depends on EC_STARLABS_MIRROR_SUPPORT
77 help
78 The version of the EC that should be installed. The mirror flag will be activated
79 if this Kconfig option is set and it does not match the current EC version.
80
Sean Rhodes296994b2021-10-14 20:58:15 +010081config EC_STARLABS_MERLIN
82 bool "Use open-source Merlin EC Firmware"
83 default n
84 depends on EC_STARLABS_ITE
85 help
86 Use open source embedded controller firmware. Both firmwares have the
87 same features but differ in licensing and compilers.
88
89config EC_VARIANT_DIR
90 string
91 default "merlin" if EC_STARLABS_MERLIN
Sean Rhodes58f6a5d2021-12-19 21:22:15 +000092
93config EC_GPE_SCI
94 hex
95 default 0x50