zephyr/drivers/input/Kconfig.kbd_matrix
Fabio Baltieri d3d484c473 input: add some initial keyboard matrix library stubs
We currently have three keyboard scanning drivers in the code base
(npcx, it8xxx2 and mchp_xec, last two yet to be converted to input).
These have been largely copy pasted from each other and share a lot of
the same structure and code.

This PR lays a foundation to start decoupling feature from those drivers
into a common code base, and it is heavily inspired by the current
regulator common data/config one.

Feature wise this only moves the thread struct, stack and initialization
to the common code and declares the thread callback as the only API, but
the intent is to move as much code as possible in there an only abstract
device specific callbacks in the api structures.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-10-31 09:00:27 +01:00

18 lines
372 B
Plaintext

# Copyright 2023 Google LLC
# SPDX-License-Identifier: Apache-2.0
config INPUT_KBD_MATRIX
bool
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.
endif # INPUT_KBD_MATRIX