From 19afe8de6d6f2e5e3140a4a21fb450c9867fbe97 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Mon, 26 Nov 2012 14:53:42 -0800 Subject: 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 Reviewed-on: https://gerrit.chromium.org/gerrit/48323 Reviewed-by: David James Reviewed-by: David Hendricks Commit-Queue: Stefan Reinauer Tested-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/4127 Tested-by: build bot (Jenkins) --- src/include/elog.h | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3