diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2020-06-12 13:33:59 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-13 02:14:53 +0000 |
commit | 278a7b025ce1f9063b39ca771bfc2905feea2e73 (patch) | |
tree | e995e687c940f3c9ccf8451eaa31261a738da2d5 /include/system.h | |
parent | c352ad138dbcf3ff5041626e438841dab6992e68 (diff) | |
download | chrome-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.h | 7 |
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. |