9439c816e9
Move all the generic code from the Nuvoton NPCX keyboard scanning driver into input_kbd_matrix.c. While doing that convert few configs into devicetree properties and tweak few other things to enable the generic code to support multiple instances. This is limited to 8 rows for now, and that's fine for all the current in-tree drivers, the limit could be removed down the road but this should be fine for now, added few generic build checks to make sure a driver does not go over the limit, as well and some more implementation specific checks. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
23 lines
658 B
Plaintext
23 lines
658 B
Plaintext
# NPCX Keyboard scan driver configuration options
|
|
|
|
# Copyright (c) 2022 Nuvoton Technology Corporation.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config INPUT_NPCX_KBD
|
|
bool "Nuvoton NPCX embedded controller (EC) keyboard scan driver"
|
|
default y
|
|
depends on DT_HAS_NUVOTON_NPCX_KBD_ENABLED
|
|
select INPUT_KBD_MATRIX
|
|
select MULTITHREADING
|
|
help
|
|
This option enables the keyboard scan driver for NPCX family of
|
|
processors.
|
|
|
|
config INPUT_NPCX_KBD_KSO_HIGH_DRIVE
|
|
bool "Select quasi-bidirectional buffers for KSO pins"
|
|
default y
|
|
depends on INPUT_NPCX_KBD
|
|
help
|
|
Select quasi-bidirectional buffers for KSO pins to reduce the
|
|
low-to-high transition time.
|