1## SPDX-License-Identifier: GPL-2.0-only 2 3config EC_STARLABS_NUVOTON 4 bool 5 select EC_ACPI 6 help 7 Interface to Nuvoton embedded controller principally in Star Labs notebooks. 8 9config 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 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 46config 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 53config 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 60config 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 67config 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 81config 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 92 93config EC_GPE_SCI 94 hex 95 default 0x50 96 97config EC_STARLABS_BATTERY_MODEL 98 string 99 default "Unknown" 100 101config EC_STARLABS_BATTERY_TYPE 102 string 103 default "LION" 104 105config EC_STARLABS_BATTERY_OEM 106 string 107 default "Unknown" 108