Skip to content

Commit 453427d

Browse files
franciscomunozandrewboie
authored andcommitted
drivers: kscan: Add Kconfig for Keyboard scan driver
Introduces the Kconfig for generic Keybard Scan matrix drivers Signed-off-by: Francisco Munoz <[email protected]>
1 parent e13a123 commit 453427d

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

drivers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ add_subdirectory_if_kconfig(audio)
3434
add_subdirectory_if_kconfig(hwinfo)
3535
add_subdirectory_if_kconfig(espi)
3636
add_subdirectory_if_kconfig(ps2)
37+
add_subdirectory_if_kconfig(kscan)
3738

3839
add_subdirectory_ifdef(CONFIG_FLASH_HAS_DRIVER_ENABLED flash)
3940
add_subdirectory_ifdef(CONFIG_SERIAL_HAS_DRIVER serial)

drivers/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,6 @@ source "drivers/espi/Kconfig"
8787

8888
source "drivers/ps2/Kconfig"
8989

90+
source "drivers/kscan/Kconfig"
91+
9092
endmenu

drivers/kscan/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
zephyr_library()

drivers/kscan/Kconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Kconfig - Keyboard scan configuration options
2+
3+
#
4+
# Copyright (c) 2019 Intel Corporation
5+
#
6+
# SPDX-License-Identifier: Apache-2.0
7+
#
8+
9+
menuconfig KSCAN
10+
bool "Keyboard scan Drivers"
11+
help
12+
Include Keyboard scan drivers in system config.
13+
14+
if KSCAN
15+
16+
source "drivers/kscan/Kconfig.xec"
17+
18+
module = KSCAN
19+
module-str = kscan
20+
source "subsys/logging/Kconfig.template.log_config"
21+
22+
config KSCAN_INIT_PRIORITY
23+
int "Keyboard scan driver init priority"
24+
default 40
25+
help
26+
Keyboard scan device driver initialization priority.
27+
28+
endif #KSCAN

0 commit comments

Comments
 (0)