[coreboot-gerrit] New patch to review for coreboot: 8acd856 butterfly: Log EC shutdown reason in ELOG

Stefan Reinauer (stefan.reinauer@coreboot.org) gerrit at coreboot.org
Mon Nov 18 23:04:27 CET 2013

Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4127


commit 8acd85623f6467ff582742f035357426ff22192b
Author: Duncan Laurie <dlaurie at chromium.org>
Date:   Mon Nov 26 14:53:42 2012 -0800

    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 at chromium.org>
    Reviewed-on: https://gerrit.chromium.org/gerrit/48323
    Reviewed-by: David James <davidjames at chromium.org>
    Reviewed-by: David Hendricks <dhendrix at chromium.org>
    Commit-Queue: Stefan Reinauer <reinauer at google.com>
    Tested-by: Stefan Reinauer <reinauer at google.com>
 src/include/elog.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/include/elog.h b/src/include/elog.h
index e6c84f3..b813a10 100644
--- a/src/include/elog.h
+++ b/src/include/elog.h
@@ -141,6 +141,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);

More information about the coreboot-gerrit mailing list