2023-10-24 22:45:33 +08:00
|
|
|
# Copyright 2023 Google LLC
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config INPUT_KBD_MATRIX
|
|
|
|
bool
|
2023-12-19 23:11:37 +08:00
|
|
|
depends on MULTITHREADING
|
2023-10-24 22:45:33 +08:00
|
|
|
help
|
|
|
|
Enable library used for keyboard matrix drivers.
|
|
|
|
|
|
|
|
if INPUT_KBD_MATRIX
|
|
|
|
|
|
|
|
config INPUT_KBD_MATRIX_THREAD_STACK_SIZE
|
|
|
|
int "Stack size for the keyboard matrix thread"
|
|
|
|
default 1024
|
|
|
|
help
|
|
|
|
Size of the stack used for the keyboard matrix thread.
|
|
|
|
|
2023-12-15 23:17:46 +08:00
|
|
|
|
|
|
|
config INPUT_KBD_MATRIX_THREAD_PRIORITY
|
|
|
|
int "Priority for the keyboard matrix thread"
|
|
|
|
default 0
|
|
|
|
help
|
|
|
|
Priority level of the keyboard matrix thread.
|
|
|
|
|
2023-11-17 21:22:30 +08:00
|
|
|
config INPUT_KBD_MATRIX_16_BIT_ROW
|
|
|
|
bool "16 bit row size support"
|
|
|
|
help
|
|
|
|
Use a 16 bit type for the internal structure, allow using a matrix
|
|
|
|
with up to 16 rows if the driver supports it.
|
|
|
|
|
2023-12-12 00:11:12 +08:00
|
|
|
config INPUT_KBD_ACTUAL_KEY_MASK_DYNAMIC
|
|
|
|
bool "Allow runtime changes to the actual key mask"
|
|
|
|
help
|
2023-12-28 00:53:16 +08:00
|
|
|
If enabled, the actual-key-mask devicetree property data is stored in
|
|
|
|
RAM, and a input_kbd_matrix_actual_key_mask_set() function is
|
|
|
|
available to change the content at runtime.
|
2023-12-12 00:11:12 +08:00
|
|
|
|
2023-11-23 01:24:06 +08:00
|
|
|
config INPUT_SHELL_KBD_MATRIX_STATE
|
|
|
|
bool "Input kbd_matrix_state shell command"
|
|
|
|
depends on INPUT_SHELL
|
|
|
|
help
|
|
|
|
Enable an input kbd_matrix_state shell command to log the state of a
|
|
|
|
keyboard matrix device.
|
|
|
|
|
|
|
|
config INPUT_SHELL_KBD_MATRIX_STATE_MAX_COLS
|
|
|
|
int "Maximum column count for the kbd_matrix_state command"
|
|
|
|
default 32
|
|
|
|
depends on INPUT_SHELL_KBD_MATRIX_STATE
|
|
|
|
help
|
|
|
|
Maximum column count for a device processed by the input
|
|
|
|
kbd_matrix_state shell command.
|
|
|
|
|
2023-11-21 22:48:48 +08:00
|
|
|
config INPUT_KBD_DRIVE_COLUMN_HOOK
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Call an application specific hook after the driver specific
|
|
|
|
drive_column implementation. The application must implement the
|
|
|
|
input_kbd_matrix_drive_column_hook function.
|
|
|
|
|
2023-10-24 22:45:33 +08:00
|
|
|
endif # INPUT_KBD_MATRIX
|