summaryrefslogtreecommitdiffstats
path: root/src/mainboard
diff options
context:
space:
mode:
authorEric Lai <ericr_lai@compal.corp-partner.google.com>2021-03-18 16:35:56 +0800
committerRaul Rangel <rrangel@chromium.org>2021-04-05 16:41:02 +0000
commite93e693173ca486d6b4674f731f6c9bbeab6bf81 (patch)
treed87d4cd33ced47a559d082ba8271e634b96f7485 /src/mainboard
parent6b928356cade5ee2c312915b30ea0044875b7ab4 (diff)
downloadcoreboot-e93e693173ca486d6b4674f731f6c9bbeab6bf81.tar.gz
coreboot-e93e693173ca486d6b4674f731f6c9bbeab6bf81.tar.bz2
coreboot-e93e693173ca486d6b4674f731f6c9bbeab6bf81.zip
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 <ericr_lai@compal.corp-partner.google.com> Change-Id: Id315ab448209d9c93494f7689361e45f8a6ed001 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51627 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Mathew King <mathewk@chromium.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/mancomb/ec.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/google/mancomb/ec.c b/src/mainboard/google/mancomb/ec.c
index 1794acfe2169..f89bc9e3823d 100644
--- a/src/mainboard/google/mancomb/ec.c
+++ b/src/mainboard/google/mancomb/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));
}