summaryrefslogtreecommitdiff
path: root/include/panic.h
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-06-11 17:51:28 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-06-15 15:17:17 -0700
commit7e59da99a2e76c1094b8bce675fb42ca384e7988 (patch)
tree5122ceb8633c82ede507b89139e0537efe617584 /include/panic.h
parent520f1aff7742afbeba5fb1720d27ac01de728968 (diff)
downloadchrome-ec-7e59da99a2e76c1094b8bce675fb42ca384e7988.tar.gz
panic: Provide declarations for chip panic data backup/restore
Provide APIs that allow chips to implement their own version of backing up/restoring panic data to persistent storage. BUG=b:62076222 BRANCH=None TEST=make -j buildall Change-Id: Idda2d55703d4fe7e0a8d6305695fbf4e193b596b Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/530196 Reviewed-by: Mulin Chao <mlchao@nuvoton.com> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'include/panic.h')
-rw-r--r--include/panic.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/panic.h b/include/panic.h
index a4fbf24b92..57eaf6788f 100644
--- a/include/panic.h
+++ b/include/panic.h
@@ -170,4 +170,14 @@ void ignore_bus_fault(int ignored);
*/
struct panic_data *panic_get_data(void);
+/**
+ * Chip-specific implementation for backing up panic data to persistent
+ * storage. This function is used to ensure that the panic data can survive loss
+ * of VCC power rail.
+ *
+ * There is no generic restore function provided since every chip can decide
+ * when it is safe to restore panic data during the system initialization step.
+ */
+void chip_panic_data_backup(void);
+
#endif /* __CROS_EC_PANIC_H */