diff options
author | Mathew King <mathewk@chromium.org> | 2021-03-03 14:44:19 -0700 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-03-15 16:20:45 +0000 |
commit | 447cb44696a532557a8af88b1a92383beb4d0f29 (patch) | |
tree | 49f6dc46e500b355b089190002f0a217376f9302 /src/mainboard/google | |
parent | 913824c910e8ba16832ec4faa07005ea820d9784 (diff) | |
download | coreboot-447cb44696a532557a8af88b1a92383beb4d0f29.tar.xz |
mb/google/guybrush: Enable eSPI VW SCI events
Guybrush does not have a dedicated SCI pin so it uses VW.
BUG=b:181134664
TEST=builds
Signed-off-by: Mathew King <mathewk@chromium.org>
Change-Id: I12fb7c23718ad2350478b89b321e9f0aa099e53b
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51238
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r-- | src/mainboard/google/guybrush/ec.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/google/guybrush/ec.c b/src/mainboard/google/guybrush/ec.c index 1794acfe21..f89bc9e382 100644 --- a/src/mainboard/google/guybrush/ec.c +++ b/src/mainboard/google/guybrush/ec.c @@ -4,8 +4,18 @@ #include <amdblocks/gpio_banks.h> #include <amdblocks/smi.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_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)); } |