drivers: kscan: Add Kconfig for Keyboard scan driver
Introduces the Kconfig for generic Keybard Scan matrix drivers Signed-off-by: Francisco Munoz <francisco.munoz.ruiz@intel.com>
This commit is contained in:
parent
e13a1230b7
commit
453427d5d1
4 changed files with 34 additions and 0 deletions
|
@ -34,6 +34,7 @@ add_subdirectory_if_kconfig(audio)
|
|||
add_subdirectory_if_kconfig(hwinfo)
|
||||
add_subdirectory_if_kconfig(espi)
|
||||
add_subdirectory_if_kconfig(ps2)
|
||||
add_subdirectory_if_kconfig(kscan)
|
||||
|
||||
add_subdirectory_ifdef(CONFIG_FLASH_HAS_DRIVER_ENABLED flash)
|
||||
add_subdirectory_ifdef(CONFIG_SERIAL_HAS_DRIVER serial)
|
||||
|
|
|
@ -87,4 +87,6 @@ source "drivers/espi/Kconfig"
|
|||
|
||||
source "drivers/ps2/Kconfig"
|
||||
|
||||
source "drivers/kscan/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
|
3
drivers/kscan/CMakeLists.txt
Normal file
3
drivers/kscan/CMakeLists.txt
Normal file
|
@ -0,0 +1,3 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
zephyr_library()
|
28
drivers/kscan/Kconfig
Normal file
28
drivers/kscan/Kconfig
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Kconfig - Keyboard scan configuration options
|
||||
|
||||
#
|
||||
# Copyright (c) 2019 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
menuconfig KSCAN
|
||||
bool "Keyboard scan Drivers"
|
||||
help
|
||||
Include Keyboard scan drivers in system config.
|
||||
|
||||
if KSCAN
|
||||
|
||||
source "drivers/kscan/Kconfig.xec"
|
||||
|
||||
module = KSCAN
|
||||
module-str = kscan
|
||||
source "subsys/logging/Kconfig.template.log_config"
|
||||
|
||||
config KSCAN_INIT_PRIORITY
|
||||
int "Keyboard scan driver init priority"
|
||||
default 40
|
||||
help
|
||||
Keyboard scan device driver initialization priority.
|
||||
|
||||
endif #KSCAN
|
Loading…
Add table
Add a link
Reference in a new issue