summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul E Rangel <rrangel@chromium.org>2018-05-25 16:11:39 -0600
committerMartin Roth <martinroth@google.com>2018-05-27 01:04:39 +0000
commit8173ad1ed79e6d191c5ed7d4a06c20d0536b485b (patch)
tree7c9dc46b364f22b5617e8aaf81877ae31cc8d685
parent06bc4d712c4276115c4e7692836fb8928689217a (diff)
downloadcoreboot-8173ad1ed79e6d191c5ed7d4a06c20d0536b485b.tar.xz
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 <rrangel@chromium.org> Reviewed-on: https://review.coreboot.org/26546 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--src/mainboard/google/kahlee/smihandler.c7
-rw-r--r--src/soc/amd/common/block/acpi/Makefile.inc1
2 files changed, 8 insertions, 0 deletions
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 <soc/smi.h>
#include <variant/ec.h>
+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