From e3e1801a3301b4ca16abf6d2ecf45ee6cff0f3f6 Mon Sep 17 00:00:00 2001 From: Jon Murphy Date: Thu, 17 Feb 2022 15:44:26 -0700 Subject: [PATCH] mb/google/skyrim: Enable eSPI SCI events Enable ESPI SCI events BUG=b:214416630 TEST=builds Signed-off-by: Jon Murphy Change-Id: If47ba561f140eb474cad30e24b0a7c85cdd76203 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62149 Reviewed-by: Karthik Ramasubramanian Reviewed-by: Raul Rangel Tested-by: build bot (Jenkins) --- src/mainboard/google/skyrim/ec.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/mainboard/google/skyrim/ec.c b/src/mainboard/google/skyrim/ec.c index 719893d0bd..bc29833713 100644 --- a/src/mainboard/google/skyrim/ec.c +++ b/src/mainboard/google/skyrim/ec.c @@ -1,10 +1,22 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ #include +#include +#include #include #include +#include #include +static const struct sci_source espi_sci_sources[] = { + { + .scimap = SMITYPE_ESPI_SYS, + .gpe = GEVENT_3, + .direction = SMI_SCI_LVL_HIGH, /* enum smi_sci_lvl */ + .level = SMI_SCI_EDG, /* enum smi_sci_dir */ + } +}; + void mainboard_ec_init(void) { const struct google_chromeec_event_info info = { @@ -16,4 +28,7 @@ void mainboard_ec_init(void) }; google_chromeec_events_init(&info, acpi_is_wakeup_s3()); + + /* Configure eSPI SCI events */ + gpe_configure_sci(espi_sci_sources, ARRAY_SIZE(espi_sci_sources)); }