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 /common/system.c | |
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 'common/system.c')
-rw-r--r-- | common/system.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/system.c b/common/system.c index be900f58fc..8b3e294336 100644 --- a/common/system.c +++ b/common/system.c @@ -855,6 +855,11 @@ void system_common_pre_init(void) } } +int system_is_manual_recovery(void) +{ + return host_is_event_set(EC_HOST_EVENT_KEYBOARD_RECOVERY); +} + /** * Handle a pending reboot command. */ |