From 8173ad1ed79e6d191c5ed7d4a06c20d0536b485b Mon Sep 17 00:00:00 2001 From: Raul E Rangel Date: Fri, 25 May 2018 16:11:39 -0600 Subject: grunt: Wire up the EC SMI handler This won't actually get called yet since the GPIO pin has not been configured as SMI. BUG=b:80295434 TEST=grunt: Made sure events could be processed. Change-Id: I189e26196e4543b3e34bff5d9df8566eff07d585 Signed-off-by: Raul E Rangel Reviewed-on: https://review.coreboot.org/26546 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin Reviewed-by: Paul Menzel --- src/mainboard/google/kahlee/smihandler.c | 7 +++++++ src/soc/amd/common/block/acpi/Makefile.inc | 1 + 2 files changed, 8 insertions(+) (limited to 'src') diff --git a/src/mainboard/google/kahlee/smihandler.c b/src/mainboard/google/kahlee/smihandler.c index 6d43fbf098..62ba2b076d 100644 --- a/src/mainboard/google/kahlee/smihandler.c +++ b/src/mainboard/google/kahlee/smihandler.c @@ -20,6 +20,13 @@ #include #include +void mainboard_smi_gpi(u32 gpi_sts) +{ + if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)) + if (gpi_sts & (1 << EC_SMI_GPI)) + chromeec_smi_process_events(); +} + void mainboard_smi_sleep(u8 slp_typ) { if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)) diff --git a/src/soc/amd/common/block/acpi/Makefile.inc b/src/soc/amd/common/block/acpi/Makefile.inc index 749dd62de5..b67eadab8f 100644 --- a/src/soc/amd/common/block/acpi/Makefile.inc +++ b/src/soc/amd/common/block/acpi/Makefile.inc @@ -1 +1,2 @@ ramstage-y += halt.c +smm-y += halt.c -- cgit v1.2.3