soc: it8xxx2: add support for eSPI driver

This supports eSPI slave, virtual wire, and peripheral functions.

Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
This commit is contained in:
Dino Li 2021-11-03 14:19:07 +08:00 committed by Carles Cufí
commit 6d8f1bf6d9
10 changed files with 1879 additions and 167 deletions

View file

@ -10,3 +10,4 @@ zephyr_library_sources_ifdef(CONFIG_ESPI_EMUL espi_emul.c)
zephyr_library_sources_ifdef(CONFIG_ESPI_SAF espi_saf_mchp_xec.c)
zephyr_library_sources_ifdef(CONFIG_ESPI_XEC_V2 espi_mchp_xec_v2.c)
zephyr_library_sources_ifdef(CONFIG_ESPI_XEC_V2 espi_mchp_xec_host_v2.c)
zephyr_library_sources_ifdef(CONFIG_ESPI_IT8XXX2 espi_it8xxx2.c)

View file

@ -18,6 +18,8 @@ source "drivers/espi/Kconfig.npcx"
source "drivers/espi/Kconfig.espi_emul"
source "drivers/espi/Kconfig.it8xxx2"
module = ESPI
module-str = espi
source "subsys/logging/Kconfig.template.log_config"

View file

@ -0,0 +1,27 @@
# Copyright (c) 2021 ITE Corporation. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
config ESPI_IT8XXX2
bool "ITE IT8XXX2 embedded controller ESPI driver"
depends on SOC_IT8XXX2
help
Enable ITE IT8XXX2 ESPI driver.
if ESPI_IT8XXX2
config ESPI_PERIPHERAL_8042_KBC
default y
config ESPI_PERIPHERAL_HOST_IO
default y
config ESPI_PERIPHERAL_DEBUG_PORT_80
default y
config ESPI_IT8XXX2_PNPCFG_DEVICE_KBC_MOUSE
bool "ITE IT8XXX2 KBC mouse device"
help
With this option enabled, EC will send IRQ12 signal to host when the
KBC mouse output buffer is full.
endif #ESPI_IT8XXX2

1286
drivers/espi/espi_it8xxx2.c Normal file

File diff suppressed because it is too large Load diff