drivers: ps2: Add Kconfig for PS/2 driver

This commit adds the Kconfig for generic PS/2 drivers

Signed-off-by: Francisco Munoz <francisco.munoz.ruiz@intel.com>
This commit is contained in:
Francisco Munoz 2019-08-07 07:37:13 -07:00 committed by Andrew Boie
commit 86e6b8d5ea
3 changed files with 31 additions and 0 deletions

View file

@ -33,6 +33,7 @@ add_subdirectory_if_kconfig(can)
add_subdirectory_if_kconfig(audio)
add_subdirectory_if_kconfig(hwinfo)
add_subdirectory_if_kconfig(espi)
add_subdirectory_if_kconfig(ps2)
add_subdirectory_ifdef(CONFIG_FLASH_HAS_DRIVER_ENABLED flash)
add_subdirectory_ifdef(CONFIG_SERIAL_HAS_DRIVER serial)

View file

@ -85,4 +85,6 @@ source "drivers/hwinfo/Kconfig"
source "drivers/espi/Kconfig"
source "drivers/ps2/Kconfig"
endmenu

28
drivers/ps2/Kconfig Normal file
View file

@ -0,0 +1,28 @@
# Kconfig - PS/2 configuration options
#
# Copyright (c) 2019 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig PS2
bool "PS/2 Drivers"
help
Include PS/2 drivers in system config.
if PS2
module = PS2
module-str = ps2
source "subsys/logging/Kconfig.template.log_config"
config PS2_INIT_PRIORITY
int "PS/2 driver init priority"
default 40
help
PS/2 device driver initialization priority.
There isn't any critical component relying on this priority at
the moment.
endif #PS2