From 453427d5d1c0e5b0780eb5f9a3e3655c26e54579 Mon Sep 17 00:00:00 2001 From: Francisco Munoz Date: Mon, 30 Sep 2019 11:45:24 -0700 Subject: [PATCH] drivers: kscan: Add Kconfig for Keyboard scan driver Introduces the Kconfig for generic Keybard Scan matrix drivers Signed-off-by: Francisco Munoz --- drivers/CMakeLists.txt | 1 + drivers/Kconfig | 2 ++ drivers/kscan/CMakeLists.txt | 3 +++ drivers/kscan/Kconfig | 28 ++++++++++++++++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 drivers/kscan/CMakeLists.txt create mode 100644 drivers/kscan/Kconfig diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt index 43ba4c9e761..d966c65da31 100644 --- a/drivers/CMakeLists.txt +++ b/drivers/CMakeLists.txt @@ -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) diff --git a/drivers/Kconfig b/drivers/Kconfig index 31e1d5274c5..81282bb87f6 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -87,4 +87,6 @@ source "drivers/espi/Kconfig" source "drivers/ps2/Kconfig" +source "drivers/kscan/Kconfig" + endmenu diff --git a/drivers/kscan/CMakeLists.txt b/drivers/kscan/CMakeLists.txt new file mode 100644 index 00000000000..28a0cecce8a --- /dev/null +++ b/drivers/kscan/CMakeLists.txt @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: Apache-2.0 + +zephyr_library() diff --git a/drivers/kscan/Kconfig b/drivers/kscan/Kconfig new file mode 100644 index 00000000000..2c05aed7d49 --- /dev/null +++ b/drivers/kscan/Kconfig @@ -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