diff options
author | Mulin Chao <mlchao@nuvoton.com> | 2016-08-04 11:20:45 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-08-10 22:16:57 -0700 |
commit | ef6e93dc1bbf92821c9d3ff149f691fbdad1c015 (patch) | |
tree | 793e53f708df2537811314916ca00e43e269cb50 /chip/npcx/lpc_chip.h | |
parent | a625b710c3e4d64a659ae20682b85dd552657b6c (diff) | |
download | chrome-ec-ef6e93dc1bbf92821c9d3ff149f691fbdad1c015.tar.gz |
npcx: Add espi driver of npcx5mng for x86-based platform.
Add espi driver for x86-based platform which support espi interface such
as skylake and so on.
Added source:
1. espi.c: Add drivers which supports the utilities of peripheral and
virtual-wire channels so far.
2. espi.h: Add espi virtual-wire declaration for power sequence FW.
Modified sources:
1. lpc.c: Add interrupts and initialization steps for espi.
2. gpio.c: Add interrupt handler of espi reset.
BRANCH=none
BUG=chrome-os-partner:34346
TEST=make buildall -j; test nuvoton IC specific drivers
Change-Id: Ie80afe79d85aba47fc0b72898a8374c2898ec114
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
Reviewed-on: https://chromium-review.googlesource.com/366181
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/npcx/lpc_chip.h')
-rw-r--r-- | chip/npcx/lpc_chip.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/chip/npcx/lpc_chip.h b/chip/npcx/lpc_chip.h index b87c2779fa..5a7cf2e6fb 100644 --- a/chip/npcx/lpc_chip.h +++ b/chip/npcx/lpc_chip.h @@ -8,7 +8,16 @@ #ifndef __CROS_EC_LPC_CHIP_H #define __CROS_EC_LPC_CHIP_H -/* Initialize host settings by interrupt */ -void lpc_lreset_pltrst_handler(void); +/* For host registers initialization via SIB module */ +void host_register_init(void); +#ifdef CONFIG_ESPI +/* eSPI Initialization functions */ +void espi_init(void); +/* eSPI reset assert/de-assert interrupt */ +void espi_espirst_handler(void); +#else +/* LPC PLTRST assert/de-assert interrupt */ +void lpc_lreset_pltrst_handler(void); +#endif #endif /* __CROS_EC_LPC_CHIP_H */ |