[coreboot-gerrit] Change in coreboot[master]: grunt: Wire up the EC SMI handler

Raul Rangel (Code Review) gerrit at coreboot.org
Sat May 26 00:11:44 CEST 2018


Raul Rangel has uploaded this change for review. ( https://review.coreboot.org/26546


Change subject: grunt: Wire up the EC SMI handler
......................................................................

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 at chromium.org>
---
M src/mainboard/google/kahlee/smihandler.c
M src/soc/amd/common/block/acpi/Makefile.inc
2 files changed, 8 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/46/26546/1

diff --git a/src/mainboard/google/kahlee/smihandler.c b/src/mainboard/google/kahlee/smihandler.c
index 6d43fbf..62ba2b0 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 749dd62..b67eada 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

-- 
To view, visit https://review.coreboot.org/26546
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I189e26196e4543b3e34bff5d9df8566eff07d585
Gerrit-Change-Number: 26546
Gerrit-PatchSet: 1
Gerrit-Owner: Raul Rangel <rrangel at chromium.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180525/ad3eb878/attachment-0001.html>


More information about the coreboot-gerrit mailing list