summaryrefslogtreecommitdiff
path: root/include/system.h
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2020-06-12 13:33:59 -0700
committerCommit Bot <commit-bot@chromium.org>2020-06-13 02:14:53 +0000
commit278a7b025ce1f9063b39ca771bfc2905feea2e73 (patch)
treee995e687c940f3c9ccf8451eaa31261a738da2d5 /include/system.h
parentc352ad138dbcf3ff5041626e438841dab6992e68 (diff)
downloadchrome-ec-278a7b025ce1f9063b39ca771bfc2905feea2e73.tar.gz
system: Add system_is_manual_recovery API
This patch moves is_manual_recovery from common/vboot to common/system.c to make it available as a common API. There is no functionality change. BUG=none BRANCH=none TEST=EFS2 detects manual recovery. Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: I3e6acd979feb78ff69b78780f1095fee855b4945 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2242663 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include/system.h')
-rw-r--r--include/system.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h
index 360b850470..9842111997 100644
--- a/include/system.h
+++ b/include/system.h
@@ -39,6 +39,13 @@ void system_pre_init(void);
void system_common_pre_init(void);
/**
+ * Checks if manual recovery is detected or not
+ *
+ * @return Non zero if manual recovery is detected or zero otherwise.
+ */
+int system_is_manual_recovery(void);
+
+/**
* System common re-initialization; called to reset persistent state
* left by system_common_pre_init(). This is useful for testing
* scenarios calling system_common_pre_init() multiple times.