summaryrefslogtreecommitdiff
path: root/include/port80.h
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2012-08-13 09:14:11 -0700
committerGerrit <chrome-bot@google.com>2012-08-13 14:58:38 -0700
commit3b8b1bd586f13d8137d2830210c64e12dab1adc6 (patch)
treee03db5267624ab3df3c8b11bb7afb66e96b99782 /include/port80.h
parent521e97fd135cfaeb199e1de0f87aa2e45b4aa804 (diff)
downloadchrome-ec-3b8b1bd586f13d8137d2830210c64e12dab1adc6.tar.gz
port80: Track and export last post code in previous boot
- Add a special port80 event for LPC reset assertion and use that event to store the previous post code. - Add a new command to retrive the last saved post code so I can easily query it at boot/resume and log unusual codes. BUG=none TEST=manual (with additional coreboot/mosys changes) - interrupt boot process by issuing x86reset on EC console or by using warm reset button on servo - read event log with mosys on next boot 78 | 2012-08-13 09:24:04 | System boot | 262 79 | 2012-08-13 09:24:04 | Last post code in previous boot | 0x9e 80 | 2012-08-13 09:24:04 | System Reset Change-Id: I7b9f10442b9c468d89fde4e75adb94b0c07c2c8d Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/29995 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'include/port80.h')
-rw-r--r--include/port80.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/port80.h b/include/port80.h
index 0d251d1d1f..28966750c6 100644
--- a/include/port80.h
+++ b/include/port80.h
@@ -12,6 +12,7 @@
enum port_80_event {
PORT_80_EVENT_RESUME = 0x1001, /* S3->S0 transition */
+ PORT_80_EVENT_RESET = 0x1002, /* RESET transition */
};
/**