1# NPCX Keyboard scan driver configuration options 2 3# Copyright (c) 2022 Nuvoton Technology Corporation. 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig INPUT_NPCX_KBD 7 bool "Nuvoton NPCX embedded controller (EC) keyboard scan driver" 8 default y 9 depends on DT_HAS_NUVOTON_NPCX_KBD_ENABLED 10 select MULTITHREADING 11 help 12 This option enables the keyboard scan driver for NPCX family of 13 processors. 14 15if INPUT_NPCX_KBD 16 17config INPUT_NPCX_KBD_POLL_PERIOD_MS 18 int "Keyscan NPCX Poll Period" 19 default 5 20 help 21 Defines the poll period in msecs between between matrix scans. 22 23config INPUT_NPCX_KBD_KSO_HIGH_DRIVE 24 bool "Select quasi-bidirectional buffers for KSO pins" 25 default y 26 help 27 Select quasi-bidirectional buffers for KSO pins to reduce the 28 low-to-high transition time. 29 30config INPUT_NPCX_KBD_POLL_COL_OUTPUT_SETTLE_TIME_US 31 int "keyboard matrix poll column output settle time" 32 default 50 33 help 34 Delay (us) between setting column output and waiting for it 35 to settle 36 37config INPUT_NPCX_KBD_THREAD_STACK_SIZE 38 int "Stack size for the kscan thread" 39 default 1024 40 help 41 Size of the stack used for the kscan thread. 42 43endif # INPUT_NPCX_KBD 44