summaryrefslogtreecommitdiff
path: root/src/mainboard/google/guybrush
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/guybrush')
-rw-r--r--src/mainboard/google/guybrush/ec.c13
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));
}