summaryrefslogtreecommitdiff
path: root/include/system.h
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-01-26 22:25:38 +0000
committerVincent Palatin <vpalatin@chromium.org>2012-01-26 22:34:41 +0000
commit84dc68283e8e6d7ed655101f09357f71bae6a202 (patch)
tree5eb74e612c2bc63e7bd867f28a378b721ddc073f /include/system.h
parent53eaf213d5ebe4f57162824104c460819b7e56af (diff)
downloadchrome-ec-84dc68283e8e6d7ed655101f09357f71bae6a202.tar.gz
Split reset cause and image copy code.
Preparatory work to introduce a second SoC : 3rd series 2/2 All the RO/A/B firmware copy code could be generic to all our platforms. The console commands are a 'standard' API. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=None TEST=on BDS EC console, check the reset cause with the 'sysinfo' command. Change-Id: Ieeb84571085d88b5747a09da4c33d3852bb0da96
Diffstat (limited to 'include/system.h')
-rw-r--r--include/system.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h
index 46cb5bf730..23607cfcaa 100644
--- a/include/system.h
+++ b/include/system.h
@@ -56,6 +56,9 @@ int system_init(void);
* the cause is not known. */
enum system_reset_cause_t system_get_reset_cause(void);
+/* Record the cause of the last reset. */
+void system_set_reset_cause(enum system_reset_cause_t cause);
+
/* Returns a text description of the last reset cause. */
const char *system_get_reset_cause_string(void);