From e93e693173ca486d6b4674f731f6c9bbeab6bf81 Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Thu, 18 Mar 2021 16:35:56 +0800 Subject: [PATCH] mb/google/mancomb: Enable eSPI VW SCI events Mancomb does not have a dedicated SCI pin so it uses VW. BUG=b:182211161 TEST=builds Signed-off-by: Eric Lai Change-Id: Id315ab448209d9c93494f7689361e45f8a6ed001 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51627 Tested-by: build bot (Jenkins) Reviewed-by: Mathew King --- src/mainboard/google/mancomb/ec.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/mainboard/google/mancomb/ec.c b/src/mainboard/google/mancomb/ec.c index 1794acfe21..f89bc9e382 100644 --- a/src/mainboard/google/mancomb/ec.c +++ b/src/mainboard/google/mancomb/ec.c @@ -4,8 +4,18 @@ #include #include #include +#include #include +static const struct sci_source espi_sci_sources[] = { + { + .scimap = SMITYPE_ESPI_SYS, + .gpe = GEVENT_24, + .direction = SMI_SCI_LVL, + .level = SMI_SCI_LVL_HIGH + } +}; + void mainboard_ec_init(void) { const struct google_chromeec_event_info info = { @@ -17,4 +27,7 @@ void mainboard_ec_init(void) }; google_chromeec_events_init(&info, acpi_is_wakeup_s3()); + + /* Configure eSPI VW SCI events */ + gpe_configure_sci(espi_sci_sources, ARRAY_SIZE(espi_sci_sources)); }