summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/Kconfig.keyboard8
-rw-r--r--zephyr/shim/include/config_chip.h5
2 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/Kconfig.keyboard b/zephyr/Kconfig.keyboard
index fc303c737d..9ad7fb8316 100644
--- a/zephyr/Kconfig.keyboard
+++ b/zephyr/Kconfig.keyboard
@@ -106,6 +106,14 @@ config PLATFORM_EC_KEYBOARD_COL2_INVERTED
Refresh key will also trigger T key, which is in the next scanning
column line. See http://b/156007029.
+config PLATFORM_EC_KEYBOARD_REFRESH_ROW3
+ bool "Move the refresh key matrix to row 3 instead of row 2"
+ help
+ The Vivaldi keyboards have the refresh key on row 3 instead of row 2.
+ The legacy keyboards with the assistant key also move the refresh key
+ matrix to row 3. This is used by the boot key detection code to
+ determine if the refresh key is held down at boot.
+
config PLATFORM_EC_VOLUME_BUTTONS
bool "Board has volume-up and volume-down buttons"
help
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index 895e19d568..41c70394f1 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -470,6 +470,11 @@
#define CONFIG_KEYBOARD_COL2_INVERTED
#endif /* CONFIG_PLATFORM_EC_KEYBOARD_COL2_INVERTED */
+#undef CONFIG_KEYBOARD_REFRESH_ROW3
+#ifdef CONFIG_PLATFORM_EC_KEYBOARD_REFRESH_ROW3
+#define CONFIG_KEYBOARD_REFRESH_ROW3
+#endif /* CONFIG_PLATFORM_EC_KEYBOARD_REFRESH_ROW3 */
+
#undef CONFIG_KEYBOARD_KEYPAD
#ifdef CONFIG_PLATFORM_EC_KEYBOARD_KEYPAD
#define CONFIG_KEYBOARD_KEYPAD