summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.keyboard
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/Kconfig.keyboard')
-rw-r--r--zephyr/Kconfig.keyboard29
1 files changed, 19 insertions, 10 deletions
diff --git a/zephyr/Kconfig.keyboard b/zephyr/Kconfig.keyboard
index 8bcc32af8e..f7c0df77ee 100644
--- a/zephyr/Kconfig.keyboard
+++ b/zephyr/Kconfig.keyboard
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -99,15 +99,15 @@ config PLATFORM_EC_KEYBOARD_PWRBTN_ASSERTS_KSI2
bool "Forces KSI2 to be asserted"
help
Enable this if KSI2 is stuck 'asserted' for all scan columns if the
- power button is held. We must be aware of this case in order to
- correctly handle recovery-mode key combinations.
+ power button is held. This applies if the refresh key is on KSI2.
+ The GSC will assert this row for all columns during a recovery boot.
config PLATFORM_EC_KEYBOARD_PWRBTN_ASSERTS_KSI3
bool "Forces KSI3 to be asserted"
help
Enable this if KSI3 is stuck 'asserted' for all scan columns if the
- power button is held. We must be aware of this case in order to
- correctly handle recovery-mode key combinations.
+ power button is held. This applies if the refresh key is on KSI3.
+ The GSC will assert this row for all columns during a recovery boot.
endchoice # PLATFORM_EC_KEYBOARD_PWRBTN_MODE
@@ -145,8 +145,8 @@ config PLATFORM_EC_VOLUME_BUTTONS
These are buttons controlled by GPIOs and are not part of the keyboard
matrix.
- Your board must define GPIO_VOLUME_UP_L and GPIO_VOLUME_DOWN_L in
- gpio_map.h
+ Your board must define GPIO_VOLUME_UP_L and GPIO_VOLUME_DOWN_L as
+ GPIOs names or as aliases in the GPIO devicetree configuration.
config PLATFORM_EC_BUTTONS_RUNTIME_CONFIG
bool "Enable buttons runtime configuration"
@@ -180,11 +180,10 @@ config PLATFORM_EC_CONSOLE_CMD_KEYBOARD
kblog - Print or toggle keyboard event log (current disabled)
typematic - Get/set typematic delays
-DT_COMPAT_CROS_EC_KBLIGHT_PWM := cros-ec,kblight-pwm
-
config PLATFORM_EC_PWM_KBLIGHT
bool "PWM keyboard backlight"
- default $(dt_compat_enabled,$(DT_COMPAT_CROS_EC_KBLIGHT_PWM))
+ default y
+ depends on DT_HAS_CROS_EC_KBLIGHT_PWM_ENABLED
select PLATFORM_EC_PWM_HC
help
Enables a PWM-controlled keyboard backlight controlled by a PWM signal
@@ -197,6 +196,16 @@ config PLATFORM_EC_KBLIGHT_ENABLE_PIN
Enables control of the keyboard backlight through a GPIO enable and
disable pin. This pin must be defined as GPIO_EN_KEYBOARD_BACKLIGHT.
+config PLATFORM_EC_KEYBOARD_STRICT_DEBOUNCE
+ bool "Keyboard strict debouncer"
+ help
+ Enable strict debouncer. A strict debouncer waits until debounce
+ is done before registering key up/down while a non-strict debouncer
+ registers a key up/down as soon as a key is pressed or released.
+ If a strict debouncer is used, it's recommended to set
+ debounce_down_us and debounce_up_us to an equal value. This guarantees
+ key events are registered in the order the keys are pressed.
+
endif # PLATFORM_EC_KEYBOARD