diff options
author | Vijay Hiremath <vijay.p.hiremath@intel.com> | 2018-04-12 15:33:01 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-13 01:43:26 -0700 |
commit | f1127f6d968b0a6dff0ba599d76732e684d8c3cb (patch) | |
tree | 9d3d755dc3321781fc5c3f20352d215dec9240b7 | |
parent | c2927f7dbbf3c68f630b4e64f17023745ea99474 (diff) | |
download | chrome-ec-f1127f6d968b0a6dff0ba599d76732e684d8c3cb.tar.gz |
it83xx: Add eSPI virtual wires for SMI & SCI
eSPI virtual wires for SMI & SCI are missing in ITE chip code,
added them to avoid compilation error if ESPI config is enabled.
BUG=b:77798195
BRANCH=none
TEST=make buildall -j
Change-Id: Ibfceb3d0fff56ccb145358a776cf76e45d92a311
Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1009110
Commit-Ready: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Tested-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: Dino Li <Dino.Li@ite.com.tw>
-rw-r--r-- | chip/it83xx/lpc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chip/it83xx/lpc.c b/chip/it83xx/lpc.c index 2a9756665c..61110498b3 100644 --- a/chip/it83xx/lpc.c +++ b/chip/it83xx/lpc.c @@ -136,16 +136,28 @@ static void keyboard_irq_assert(void) */ static void lpc_generate_smi(void) { +#ifdef CONFIG_ESPI + espi_vw_set_wire(VW_SMI_L, 0); + udelay(65); + espi_vw_set_wire(VW_SMI_L, 1); +#else gpio_set_level(GPIO_PCH_SMI_L, 0); udelay(65); gpio_set_level(GPIO_PCH_SMI_L, 1); +#endif } static void lpc_generate_sci(void) { +#ifdef CONFIG_ESPI + espi_vw_set_wire(VW_SCI_L, 0); + udelay(65); + espi_vw_set_wire(VW_SCI_L, 1); +#else gpio_set_level(GPIO_PCH_SCI_L, 0); udelay(65); gpio_set_level(GPIO_PCH_SCI_L, 1); +#endif } /** |