[coreboot-gerrit] Change in coreboot[master]: elog: Update for EC Device Events

Duncan Laurie (Code Review) gerrit at coreboot.org
Fri Jun 30 09:03:35 CEST 2017


Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/20427


Change subject: elog: Update for EC Device Events
......................................................................

elog: Update for EC Device Events

Replace the unused "thermal overload" event with the new
"device event" and define the first few device events that are
supported by the Chromium EC.

BUG=b:30624430
TEST=build for google/* mainboards

Change-Id: I1f3aeedb87c2aad29a0a67b5c50c29a6961fb45f
Signed-off-by: Duncan Laurie <dlaurie at chromium.org>
---
M src/include/elog.h
1 file changed, 7 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/27/20427/1

diff --git a/src/include/elog.h b/src/include/elog.h
index ecda87d..c960186 100644
--- a/src/include/elog.h
+++ b/src/include/elog.h
@@ -73,7 +73,7 @@
 #define EC_EVENT_BATTERY_CRITICAL            0x07
 #define EC_EVENT_BATTERY                     0x08
 #define EC_EVENT_THERMAL_THRESHOLD           0x09
-#define EC_EVENT_THERMAL_OVERLOAD            0x0a
+#define EC_EVENT_DEVICE_EVENT                0x0a
 #define EC_EVENT_THERMAL                     0x0b
 #define EC_EVENT_USB_CHARGER                 0x0c
 #define EC_EVENT_KEY_PRESSED                 0x0d
@@ -206,6 +206,12 @@
 /* Deep Sx wake variant */
 #define ELOG_TYPE_ACPI_DEEP_WAKE          0xad
 
+/* EC Device Event */
+#define ELOG_TYPE_EC_DEVICE_EVENT         0xae
+#define ELOG_EC_DEVICE_EVENT_TRACKPAD       0x01
+#define ELOG_EC_DEVICE_EVENT_DSP            0x02
+#define ELOG_EC_DEVICE_EVENT_WIFI           0x03
+
 #if CONFIG_ELOG
 /* Eventlog backing storage must be initialized before calling elog_init(). */
 extern int elog_init(void);

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

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1f3aeedb87c2aad29a0a67b5c50c29a6961fb45f
Gerrit-Change-Number: 20427
Gerrit-PatchSet: 1
Gerrit-Owner: Duncan Laurie <dlaurie at chromium.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170630/b9fec4db/attachment.html>


More information about the coreboot-gerrit mailing list