2019-11-01 20:45:29 +08:00
|
|
|
# Microchip XEC Keyboard Scan Matrix configuration options
|
|
|
|
|
2019-10-01 08:35:42 +08:00
|
|
|
# Copyright (c) 2019 Intel Corporation
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-11-23 03:41:23 +08:00
|
|
|
DT_COMPAT_ST_KSCAN_XEC := microchip,xec-kscan
|
|
|
|
|
2019-10-01 08:35:42 +08:00
|
|
|
menuconfig KSCAN_XEC
|
2021-11-23 03:41:23 +08:00
|
|
|
bool "Microchip XEC series KSCAN driver"
|
2019-10-01 08:35:42 +08:00
|
|
|
depends on SOC_FAMILY_MEC
|
2021-11-23 03:41:23 +08:00
|
|
|
default $(dt_compat_enabled,$(DT_COMPAT_ST_KSCAN_XEC))
|
2019-10-01 08:35:42 +08:00
|
|
|
select MULTITHREADING
|
|
|
|
help
|
|
|
|
Enable the Microchip XEC Kscan IO driver.
|
|
|
|
|
|
|
|
if KSCAN_XEC
|
|
|
|
|
|
|
|
config KSCAN_XEC_COLUMN_SIZE
|
2021-11-23 03:41:23 +08:00
|
|
|
int "Keyscan XEC Column Size"
|
2019-10-01 08:35:42 +08:00
|
|
|
default 16
|
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
Adjust the value to your keyboard columns. The maximum
|
|
|
|
column size for the Microchip XEC family is 18 (from 0 to 17).
|
2019-10-01 08:35:42 +08:00
|
|
|
|
|
|
|
config KSCAN_XEC_ROW_SIZE
|
2021-11-23 03:41:23 +08:00
|
|
|
int "Keyscan XEC Row Size"
|
2019-10-01 08:35:42 +08:00
|
|
|
default 8
|
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
Adjust the value to your keyboard rows. The maximum
|
|
|
|
column size for the Microchip XEC family is 8 (from 0 to 7).
|
2019-10-01 08:35:42 +08:00
|
|
|
|
|
|
|
config KSCAN_XEC_DEBOUNCE_DOWN
|
2021-11-23 03:41:23 +08:00
|
|
|
int "Keyscan XEC Debounce Down"
|
2019-10-01 08:35:42 +08:00
|
|
|
default 10
|
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
Determines the time in msecs for debouncing a key press.
|
2019-10-01 08:35:42 +08:00
|
|
|
|
|
|
|
config KSCAN_XEC_DEBOUNCE_UP
|
2021-11-23 03:41:23 +08:00
|
|
|
int "Keyscan XEC Debounce Up"
|
2019-10-01 08:35:42 +08:00
|
|
|
default 20
|
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
Determines the time in msecs for debouncing a key release.
|
2019-10-01 08:35:42 +08:00
|
|
|
|
|
|
|
config KSCAN_XEC_POLL_PERIOD
|
2021-11-23 03:41:23 +08:00
|
|
|
int "Keyscan XEC Poll Period"
|
2019-10-01 08:35:42 +08:00
|
|
|
default 5
|
|
|
|
help
|
2019-11-01 17:24:07 +08:00
|
|
|
Defines the poll period in msecs between between matrix scans.
|
2019-10-01 08:35:42 +08:00
|
|
|
|
2019-11-01 17:24:07 +08:00
|
|
|
endif # KSCAN_XEC
|