1# Copyright (c) 2021 ITE Corporation. All Rights Reserved.
2# SPDX-License-Identifier: Apache-2.0
3
4menuconfig KSCAN_ITE_IT8XXX2
5	bool "ITE KSCAN driver"
6	default y
7	depends on DT_HAS_ITE_IT8XXX2_KSCAN_ENABLED
8	select MULTITHREADING
9	help
10	  This option enables the ITE keyboard scan driver.
11
12if KSCAN_ITE_IT8XXX2
13
14config KSCAN_ITE_IT8XXX2_COLUMN_SIZE
15	int "KSCAN_ITE_IT8XXX2_COLUMN_SIZE"
16	range 16 18
17	default 16
18	help
19	  Adjust the value to your keyboard columns. The maximum
20	  column size for the ITE family is 18.
21
22config KSCAN_ITE_IT8XXX2_ROW_SIZE
23	int "KSCAN_ITE_IT8XXX2_ROW_SIZE"
24	default 8
25	help
26	  Adjust the value to your keyboard rows. The maximum
27	  row size for the ITE family is 8.
28
29config KSCAN_ITE_IT8XXX2_DEBOUNCE_DOWN
30	int "KSCAN_ITE_IT8XXX2_DEBOUNCE_DOWN"
31	default 9
32	help
33	  Determines the time in msecs for debouncing a key press.
34
35config KSCAN_ITE_IT8XXX2_DEBOUNCE_UP
36	int "KSCAN_ITE_IT8XXX2_DEBOUNCE_UP"
37	default 30
38	help
39	  Determines the time in msecs for debouncing a key release.
40
41config KSCAN_ITE_IT8XXX2_POLL_PERIOD
42	int "KSCAN_ITE_IT8XXX2_POLL_PERIOD"
43	default 3
44	help
45	  Defines the poll period in msecs between matrix scans.
46
47endif # KSCAN_ITE_IT8XXX2
48