From 0de98c1bceacd793ae05b0e930d8b9d2a37a6acc Mon Sep 17 00:00:00 2001 From: Jose Alberto Meza Date: Tue, 4 Feb 2020 15:53:13 -0800 Subject: [PATCH] drivers: peci: Add Kconfig for PECI driver Add the Kconfig for generic PECI drivers. Signed-off-by: Jose Alberto Meza --- drivers/CMakeLists.txt | 1 + drivers/Kconfig | 2 ++ drivers/peci/CMakeLists.txt | 3 +++ drivers/peci/Kconfig | 31 +++++++++++++++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 drivers/peci/CMakeLists.txt create mode 100644 drivers/peci/Kconfig diff --git a/drivers/CMakeLists.txt b/drivers/CMakeLists.txt index 68ac3b1fd9f..a73de773d1d 100644 --- a/drivers/CMakeLists.txt +++ b/drivers/CMakeLists.txt @@ -38,6 +38,7 @@ add_subdirectory_if_kconfig(kscan) add_subdirectory_if_kconfig(video) add_subdirectory_if_kconfig(eeprom) add_subdirectory_if_kconfig(lora) +add_subdirectory_if_kconfig(peci) 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 f5f781176ed..4ca092c44fa 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -93,4 +93,6 @@ source "drivers/video/Kconfig" source "drivers/eeprom/Kconfig" +source "drivers/peci/Kconfig" + endmenu diff --git a/drivers/peci/CMakeLists.txt b/drivers/peci/CMakeLists.txt new file mode 100644 index 00000000000..b09185cd007 --- /dev/null +++ b/drivers/peci/CMakeLists.txt @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: Apache-2.0 + +zephyr_library() \ No newline at end of file diff --git a/drivers/peci/Kconfig b/drivers/peci/Kconfig new file mode 100644 index 00000000000..f241687ffd9 --- /dev/null +++ b/drivers/peci/Kconfig @@ -0,0 +1,31 @@ +# PECI configuration options + +# Copyright (c) 2020 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +menuconfig PECI + bool "PECI Driver" + help + Include PECI drivers in system config. + +if PECI + +module = PECI +module-str = peci +source "subsys/logging/Kconfig.template.log_config" + +config PECI_INIT_PRIORITY + int "PECI driver init priority" + default 40 + help + PECI device driver initialization priority. + There isn't any critical component relying on this priority at + the moment. + +endif # PECI + +config PECI_INTERRUPT_DRIVEN + bool "PECI driver interrupt support" + help + This is an option to be enabled by individual peci driver + to indicate that the driver and hardware supports interrupts.