[coreboot-gerrit] Change in coreboot[master]: google/kahlee: Add SMI sleep handler

Marshall Dawson (Code Review) gerrit at coreboot.org
Thu Oct 5 00:30:10 CEST 2017


Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/21881


Change subject: google/kahlee: Add SMI sleep handler
......................................................................

google/kahlee: Add SMI sleep handler

Notify the EC the system is going to sleep.

Change-Id: I025e268a4f806d827348d91effff43a6a339a148
Signed-off-by: Marshall Dawson <marshalldawson3rd at gmail.com>
---
M src/mainboard/google/kahlee/smihandler.c
1 file changed, 7 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/81/21881/1

diff --git a/src/mainboard/google/kahlee/smihandler.c b/src/mainboard/google/kahlee/smihandler.c
index 454b42e..f1c66a6 100644
--- a/src/mainboard/google/kahlee/smihandler.c
+++ b/src/mainboard/google/kahlee/smihandler.c
@@ -20,6 +20,13 @@
 #include <soc/smi.h>
 #include "ec.h"
 
+void mainboard_smi_sleep(u8 slp_typ)
+{
+	if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC))
+		chromeec_smi_sleep(slp_typ, MAINBOARD_EC_S3_WAKE_EVENTS,
+					MAINBOARD_EC_S5_WAKE_EVENTS);
+}
+
 int mainboard_smi_apmc(u8 apmc)
 {
 	if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC))

-- 
To view, visit https://review.coreboot.org/21881
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I025e268a4f806d827348d91effff43a6a339a148
Gerrit-Change-Number: 21881
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171004/3295f222/attachment.html>


More information about the coreboot-gerrit mailing list