Skip to content
Permalink
Browse files

drivers: espi: Add Kconfig for eSPI driver

Adds the Kconfig for generic eSPI drivers

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
  • Loading branch information...
Jose Alberto Meza authored and andrewboie committed May 2, 2019
1 parent e3f3294 commit a7e44ebf44b1605c05b8c1cf9d3a7e1f21f7a034
Showing with 103 additions and 0 deletions.
  1. +1 −0 drivers/CMakeLists.txt
  2. +2 −0 drivers/Kconfig
  3. +4 −0 drivers/espi/CMakeLists.txt
  4. +96 −0 drivers/espi/Kconfig
@@ -33,6 +33,7 @@ add_subdirectory_if_kconfig(wifi)
add_subdirectory_if_kconfig(can)
add_subdirectory_if_kconfig(audio)
add_subdirectory_if_kconfig(hwinfo)
add_subdirectory_if_kconfig(espi)

add_subdirectory_ifdef(CONFIG_FLASH_HAS_DRIVER_ENABLED flash)
add_subdirectory_ifdef(CONFIG_SERIAL_HAS_DRIVER serial)
@@ -89,4 +89,6 @@ source "drivers/neural_net/Kconfig"

source "drivers/hwinfo/Kconfig"

source "drivers/espi/Kconfig"

endmenu
@@ -0,0 +1,4 @@
# SPDX-License-Identifier: Apache-2.0

zephyr_library()

@@ -0,0 +1,96 @@
# Kconfig - eSPI configuration options
#
# Copyright (c) 2019 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#

menuconfig ESPI
bool "ESPI Driver"
help
Enable ESPI Driver

if ESPI

source "drivers/espi/Kconfig.xec"

module = ESPI
module-str = espi
source "subsys/logging/Kconfig.template.log_config"

config ESPI_SLAVE
bool "ESPI slave driver"
default y
help
Enables eSPI driver in slave mode

config ESPI_INIT_PRIORITY
int "IRQ Priority for ESPI Controller"
default 3
help
IRQ Priority for ESPI Controller

config ESPI_PERIPHERAL_CHANNEL
bool "eSPI peripheral channel"
default y
help
eSPI Controller supports peripheral channel

config ESPI_VWIRE_CHANNEL
bool "eSPI virtual wire channel"
default y
help
eSPI Controller supports virtual wires channel

config ESPI_OOB_CHANNEL
bool "eSPI Out-of-band channel"
default n
help
eSPI Controller supports OOB channel

config ESPI_FLASH_CHANNEL
bool "ESPI flash channel"
default n
help
eSPI Controller supports flash channel

if ESPI_PERIPHERAL_CHANNEL

config ESPI_PERIPHERAL_UART
bool "UART peripheral"
depends on ESPI_PERIPHERAL_CHANNEL
default n
help
Enables UART over eSPI peripheral channel

config ESPI_PERIPHERAL_8042_KEYBOARD
bool "8042 keyboard peripheral"
depends on ESPI_PERIPHERAL_CHANNEL
default n
help
Enables 8042 keyboard over eSPI peripheral channel

config ESPI_PERIPHERAL_HOST_IO
bool "Host I/O peripheral"
depends on ESPI_PERIPHERAL_CHANNEL
default n
help
Enables ACPI Host I/O over eSPI peripheral channel

config ESPI_PERIPHERAL_PORT_92
bool "Legacy Port 92 peripheral"
depends on ESPI_PERIPHERAL_CHANNEL
default n
help
Enables legacy Port 92 over eSPI peripheral channel

config ESPI_PERIPHERAL_DEBUG_PORT_80
bool "Debug Port 80 peripheral"
depends on ESPI_PERIPHERAL_CHANNEL
default n
help
Enables debug Port 80 over eSPI peripheral channel

endif # ESPI_PERIPHERAL_CHANNEL

endif # ESPI

0 comments on commit a7e44eb

Please sign in to comment.
You can’t perform that action at this time.