diff options
author | Jon Murphy <jpmurphy@google.com> | 2022-02-17 15:44:26 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-02-26 00:17:40 +0000 |
commit | e3e1801a3301b4ca16abf6d2ecf45ee6cff0f3f6 (patch) | |
tree | abc6a98593f61173b21e68fac0d144f3cf894780 /src | |
parent | 2a7445a165125863446b87744700f59fdc72ba37 (diff) |
mb/google/skyrim: Enable eSPI SCI events
Enable ESPI SCI events
BUG=b:214416630
TEST=builds
Signed-off-by: Jon Murphy <jpmurphy@google.com>
Change-Id: If47ba561f140eb474cad30e24b0a7c85cdd76203
Reviewed-on: https://review.coreboot.org/c/coreboot/+/62149
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/skyrim/ec.c | 15 |
1 files changed, 15 insertions, 0 deletions
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 <acpi/acpi.h> +#include <amdblocks/gpio.h> +#include <amdblocks/smi.h> #include <console/console.h> #include <ec/google/chromeec/ec.h> +#include <soc/smi.h> #include <variant/ec.h> +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)); } |