mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-06 23:51:28 +00:00
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>
24 lines
656 B
C
24 lines
656 B
C
/* Copyright (c) 2015 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* NPCX-specific hwtimer module for Chrome EC */
|
|
|
|
#ifndef __CROS_EC_LPC_CHIP_H
|
|
#define __CROS_EC_LPC_CHIP_H
|
|
|
|
/* 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 */
|