Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Sean Rhodes | 7834298 | 2022-03-09 08:23:29 +0000 | [diff] [blame] | 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 | |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 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 |
Sean Rhodes | 7834298 | 2022-03-09 08:23:29 +0000 | [diff] [blame] | 42 | depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 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 |
Sean Rhodes | 7834298 | 2022-03-09 08:23:29 +0000 | [diff] [blame] | 49 | depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 50 | help |
| 51 | Select if the mainboard has a fan. |
| 52 | |
Sean Rhodes | 8de7c01 | 2022-07-31 17:35:28 +0100 | [diff] [blame] | 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 | |
Sean Rhodes | 4d1bf7b | 2022-02-17 13:55:34 +0000 | [diff] [blame] | 60 | config EC_STARLABS_MAX_CHARGE |
| 61 | bool |
| 62 | default n |
Sean Rhodes | 7834298 | 2022-03-09 08:23:29 +0000 | [diff] [blame] | 63 | depends on EC_STARLABS_ITE || EC_STARLABS_NUVOTON |
Sean Rhodes | 4d1bf7b | 2022-02-17 13:55:34 +0000 | [diff] [blame] | 64 | help |
| 65 | Select if the mainboard supports limiting the maximum charge of the battery. |
| 66 | |
Sean Rhodes | 0579c60 | 2023-02-16 15:00:14 +0000 | [diff] [blame] | 67 | config 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 | |
| 74 | config 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 Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 81 | config 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 | |
| 89 | config EC_VARIANT_DIR |
| 90 | string |
| 91 | default "merlin" if EC_STARLABS_MERLIN |
Sean Rhodes | 58f6a5d | 2021-12-19 21:22:15 +0000 | [diff] [blame] | 92 | |
| 93 | config EC_GPE_SCI |
| 94 | hex |
| 95 | default 0x50 |