From 86e6b8d5ea4847a4d613643b29417ab6db2f9e23 Mon Sep 17 00:00:00 2001 From: Francisco Munoz Date: Wed, 7 Aug 2019 07:37:13 -0700 Subject: [PATCH] drivers: ps2: Add Kconfig for PS/2 driver This commit adds the Kconfig for generic PS/2 drivers Signed-off-by: Francisco Munoz --- drivers/CMakeLists.txt | 1 + drivers/Kconfig | 2 ++ drivers/ps2/Kconfig | 28 ++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 drivers/ps2/Kconfig diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt index c4365302135..43ba4c9e761 100644 --- a/drivers/CMakeLists.txt +++ b/drivers/CMakeLists.txt @@ -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) diff --git a/drivers/Kconfig b/drivers/Kconfig index e43fc83570b..31e1d5274c5 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -85,4 +85,6 @@ source "drivers/hwinfo/Kconfig" source "drivers/espi/Kconfig" +source "drivers/ps2/Kconfig" + endmenu diff --git a/drivers/ps2/Kconfig b/drivers/ps2/Kconfig new file mode 100644 index 00000000000..6b119506d9b --- /dev/null +++ b/drivers/ps2/Kconfig @@ -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