Michael Niewöhner | e1e65cb | 2021-12-01 19:09:13 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
| 3 | config EC_CLEVO_IT5570E |
| 4 | bool |
| 5 | select EC_ACPI |
| 6 | help |
| 7 | IT5570E embedded controller in Clevo notebooks |
| 8 | |
| 9 | if EC_CLEVO_IT5570E |
| 10 | |
| 11 | config EC_CLEVO_IT5570E_MEM_BASE |
| 12 | hex |
| 13 | help |
| 14 | Memory address for the EC memory region mapped via LGMR |
| 15 | |
| 16 | config EC_CLEVO_IT5570E_AC_FAN_ALWAYS_ON |
| 17 | bool "Fan always on with AC attached" |
| 18 | default n |
| 19 | help |
| 20 | Never turn the fan fully off when AC is attached. |
| 21 | |
| 22 | This setting can be overridden by cmos option `ac_fan_always_on`. |
| 23 | |
| 24 | config EC_CLEVO_IT5570E_KBLED_BOOTEFFECT |
| 25 | bool "Keyboard boot effect" |
| 26 | default n |
| 27 | help |
| 28 | Enable the "breathing" boot effect of the LED keyboard. |
| 29 | |
| 30 | This setting can be overridden by cmos option `kbled_booteffect`. |
| 31 | |
| 32 | config EC_CLEVO_IT5570E_KBLED_TIMEOUT |
| 33 | int "Keyboard backlight timeout" |
| 34 | default 15 |
| 35 | help |
| 36 | Keyboard backlight timeout in seconds. 0 keeps the backlight |
| 37 | always on. |
| 38 | |
| 39 | This setting can be overridden by cmos option `kbled_timeout`. |
| 40 | |
| 41 | config EC_CLEVO_IT5570E_FN_WIN_SWAP |
| 42 | bool "Swap Fn/Windows keys" |
| 43 | default n |
| 44 | help |
| 45 | Swap the Fn and Windows key. |
| 46 | |
| 47 | This setting can be overridden by cmos option `fn_win_swap`. |
| 48 | |
| 49 | config EC_CLEVO_IT5570E_FLEXICHARGER |
| 50 | bool "Flexicharger" |
| 51 | default n |
| 52 | help |
| 53 | Enable the Flexicharger functionality. |
| 54 | |
| 55 | This setting can be overridden by cmos option `flexicharger`. |
| 56 | |
| 57 | if EC_CLEVO_IT5570E_FLEXICHARGER |
| 58 | |
| 59 | config EC_CLEVO_IT5570E_FLEXICHG_START |
| 60 | int "Start charge threshold" |
| 61 | default 95 |
| 62 | help |
| 63 | Start charge threshold in percent. |
| 64 | |
| 65 | This setting can be overridden by cmos option `flexicharger_start`. |
| 66 | |
| 67 | config EC_CLEVO_IT5570E_FLEXICHG_STOP |
| 68 | int "Stop charge threshold" |
| 69 | default 100 |
| 70 | help |
| 71 | Stop charge threshold in percent. |
| 72 | |
| 73 | This setting can be overridden by cmos option `flexicharger_stop`. |
| 74 | |
| 75 | endif |
| 76 | |
| 77 | choice |
| 78 | prompt "Camera default state" |
| 79 | default EC_CLEVO_IT5570E_CAM_BOOT_STATE_KEEP |
| 80 | help |
| 81 | Camera default state. |
| 82 | |
| 83 | This setting can be overridden by cmos option `camera_boot_state`. |
| 84 | |
| 85 | config EC_CLEVO_IT5570E_CAM_BOOT_STATE_KEEP |
| 86 | bool "Keep previous state" |
| 87 | |
| 88 | config EC_CLEVO_IT5570E_CAM_BOOT_STATE_DISABLE |
| 89 | bool "Disable" |
| 90 | |
| 91 | config EC_CLEVO_IT5570E_CAM_BOOT_STATE_ENABLE |
| 92 | bool "Enable" |
| 93 | |
| 94 | endchoice |
| 95 | |
| 96 | config EC_CLEVO_IT5570E_CAM_BOOT_STATE |
| 97 | int |
| 98 | default 0 if EC_CLEVO_IT5570E_CAM_BOOT_STATE_DISABLE |
| 99 | default 1 if EC_CLEVO_IT5570E_CAM_BOOT_STATE_ENABLE |
| 100 | default 2 |
| 101 | |
| 102 | choice |
| 103 | prompt "Touchpad toggle mode" |
| 104 | default EC_CLEVO_IT5570E_TP_TOGGLE_MODE_CTRLALTF9 |
| 105 | help |
| 106 | There are two modes for the touchpad toggle (Fn-F1): |
| 107 | - Ctrl-Alt-F9 mode sends the windows-native touchpad toggle keyboard shortcut. |
| 108 | - Keycode mode sends special key codes f7/f8 which can be configured in udev |
| 109 | to be handled as touchpad toggle. |
| 110 | |
| 111 | This setting can be overridden by cmos option `tp_toggle_mode`. |
| 112 | |
| 113 | config EC_CLEVO_IT5570E_TP_TOGGLE_MODE_CTRLALTF9 |
| 114 | bool "Ctrl-Alt-F9" |
| 115 | |
| 116 | config EC_CLEVO_IT5570E_TP_TOGGLE_MODE_KEYOCDE_F7F8 |
| 117 | bool "Keycode f7/f8" |
| 118 | |
| 119 | endchoice |
| 120 | |
| 121 | config EC_CLEVO_IT5570E_TP_TOGGLE_MODE |
| 122 | int |
| 123 | default 0 if EC_CLEVO_IT5570E_TP_TOGGLE_MODE_CTRLALTF9 |
| 124 | default 1 if EC_CLEVO_IT5570E_TP_TOGGLE_MODE_KEYOCDE_F7F8 |
| 125 | |
| 126 | endif |