forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
input: it8xxx2: use the generic keyboard code
Split the common keyboard scanning code out of the ITE specific driver and use the generic code instead. Note that this changes few timing defaults, the change is not significant though so I suspect there's no difference in practice. Signed-off-by: Fabio Baltieri <[email protected]>
- Loading branch information
1 parent
24c1b42
commit e87ded3
Showing
5 changed files
with
90 additions
and
398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,11 @@ | ||
# Copyright (c) 2021 ITE Corporation. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
menuconfig INPUT_ITE_IT8XXX2_KBD | ||
config INPUT_ITE_IT8XXX2_KBD | ||
bool "ITE keyboard scanning driver" | ||
default y | ||
depends on DT_HAS_ITE_IT8XXX2_KBD_ENABLED | ||
select INPUT_KBD_MATRIX | ||
select MULTITHREADING | ||
help | ||
This option enables the ITE keyboard scan driver. | ||
|
||
if INPUT_ITE_IT8XXX2_KBD | ||
|
||
config INPUT_ITE_IT8XXX2_COLUMN_SIZE | ||
int "INPUT_ITE_IT8XXX2_COLUMN_SIZE" | ||
range 16 18 | ||
default 16 | ||
help | ||
Adjust the value to your keyboard columns. The maximum | ||
column size for the ITE family is 18. | ||
|
||
config INPUT_ITE_IT8XXX2_ROW_SIZE | ||
int "INPUT_ITE_IT8XXX2_ROW_SIZE" | ||
default 8 | ||
help | ||
Adjust the value to your keyboard rows. The maximum | ||
row size for the ITE family is 8. | ||
|
||
config INPUT_ITE_IT8XXX2_DEBOUNCE_DOWN | ||
int "INPUT_ITE_IT8XXX2_DEBOUNCE_DOWN" | ||
default 9 | ||
help | ||
Determines the time in msecs for debouncing a key press. | ||
|
||
config INPUT_ITE_IT8XXX2_DEBOUNCE_UP | ||
int "INPUT_ITE_IT8XXX2_DEBOUNCE_UP" | ||
default 30 | ||
help | ||
Determines the time in msecs for debouncing a key release. | ||
|
||
config INPUT_ITE_IT8XXX2_POLL_PERIOD | ||
int "INPUT_ITE_IT8XXX2_POLL_PERIOD" | ||
default 3 | ||
help | ||
Defines the poll period in msecs between matrix scans. | ||
|
||
endif |
Oops, something went wrong.