drivers: peci: Add Kconfig for PECI driver

Add the Kconfig for generic PECI drivers.

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
This commit is contained in:
Jose Alberto Meza 2020-02-04 15:53:13 -08:00 committed by Andrew Boie
parent 64f8aa9e0d
commit 0de98c1bce
4 changed files with 37 additions and 0 deletions

View file

@ -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)

View file

@ -93,4 +93,6 @@ source "drivers/video/Kconfig"
source "drivers/eeprom/Kconfig"
source "drivers/peci/Kconfig"
endmenu

View file

@ -0,0 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
zephyr_library()

31
drivers/peci/Kconfig Normal file
View file

@ -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.