summaryrefslogtreecommitdiff
path: root/src/ec/starlabs/merlin/Kconfig
blob: 5939854d1d7c046b9f726fe3645bcf981f4a97a3 (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
## SPDX-License-Identifier: GPL-2.0-only

config EC_STARLABS_NUVOTON
	bool
	select EC_ACPI
	help
	  Interface to Nuvoton embedded controller principally in Star Labs notebooks.

config EC_STARLABS_ITE
	bool
	select EC_ACPI
	help
	  Interface to ITE embedded controller principally in Star Labs notebooks.
	  Works with closed-source ITE firmware versions:
	  TGL - 1.00 or later
	  CML - 1.04 or later
	  KBL - 3.12 or later
	  And open-source Merlin firmware version 1.00 or later

config EC_STARLABS_NEED_ITE_BIN
	bool
	depends on EC_STARLABS_ITE
	help
	  Select if the mainboard requires EC firmware in the main flash chip.

config EC_STARLABS_ADD_ITE_BIN
	bool "Add Star Labs EC binary file"
	default n
	depends on EC_STARLABS_NEED_ITE_BIN
	help
	  Select to add an EC firmware binary into the coreboot image. EC firmware
	  is necessary, flashing a coreboot image without EC firmware will render
	  your laptop unusable.

config EC_STARLABS_ITE_BIN_PATH
	string "Star Labs EC binary file path"
	depends on EC_STARLABS_ADD_ITE_BIN

config EC_STARLABS_KBL_LEVELS
	bool
	default n
	depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON
	help
	  Select if the mainboard supports multiple levels of brightness for the keyboard.

config EC_STARLABS_FAN
	bool
	default n
	depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON
	help
	  Select if the mainboard has a fan.

config EC_STARLABS_FAST_CHARGE
	bool
	default n
	depends on EC_STARLABS_NUVOTON
	help
	  Select if the mainboard supports fast charging.

config EC_STARLABS_MAX_CHARGE
	bool
	default n
	depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON
	help
	  Select if the mainboard supports limiting the maximum charge of the battery.

config EC_STARLABS_MIRROR_SUPPORT
	bool "Enable mirror flag support"
	default n
	depends on EC_STARLABS_ITE
	help
	  Select if the EC should mirror the EC firmware contained in the coreboot ROM.

config EC_STARLABS_MIRROR_VERSION
	hex "Version of the EC firmware that should be installed."
	depends on EC_STARLABS_MIRROR_SUPPORT
	help
	  The version of the EC that should be installed. The mirror flag will be activated
	  if this Kconfig option is set and it does not match the current EC version.

config EC_STARLABS_MERLIN
	bool "Use open-source Merlin EC Firmware"
	default n
	depends on EC_STARLABS_ITE
	help
	  Use open source embedded controller firmware. Both firmwares have the
	  same features but differ in licensing and compilers.

config EC_VARIANT_DIR
	string
	default "merlin" if EC_STARLABS_MERLIN

config EC_GPE_SCI
	hex
	default 0x50