summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2012-11-26 14:53:42 -0800
committerStefan Reinauer <stefan.reinauer@coreboot.org>2013-11-25 23:02:59 +0100
commit19afe8de6d6f2e5e3140a4a21fb450c9867fbe97 (patch)
tree9deb41d8ddfa9f850bf753e2b9d696710017fc31
parent8c5947709a1d9e72d6ce17c48068b38afcb81967 (diff)
butterfly: Log EC shutdown reason in ELOG
The EC saves its last "shutdown reason" for the system in EC RAM that we can read back and log on boot. The decode for the "reason" field will be added to mosys. Change-Id: I834d39122e45262ef8e7ba59201accbee5857aac Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/48323 Reviewed-by: David James <davidjames@chromium.org> Reviewed-by: David Hendricks <dhendrix@chromium.org> Commit-Queue: Stefan Reinauer <reinauer@google.com> Tested-by: Stefan Reinauer <reinauer@google.com> Reviewed-on: http://review.coreboot.org/4127 Tested-by: build bot (Jenkins)
-rw-r--r--src/include/elog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/elog.h b/src/include/elog.h
index a65893c1a6..21d9cdf436 100644
--- a/src/include/elog.h
+++ b/src/include/elog.h
@@ -140,6 +140,9 @@ struct elog_event_data_me_extended {
/* Last post code from previous boot */
#define ELOG_TYPE_LAST_POST_CODE 0xa3
+/* EC Shutdown Reason */
+#define ELOG_TYPE_EC_SHUTDOWN 0xa5
+
extern int elog_init(void);
extern int elog_clear(void);
extern void elog_add_event_raw(u8 event_type, void *data, u8 data_size);