diff options
author | Daisuke Nojiri <dnojiri@chromium.org> | 2021-07-01 10:38:06 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-05 18:14:31 +0000 |
commit | 23a542566b89d5f00dbd3f5442e63f6d0cbf7477 (patch) | |
tree | d7208941f38d7553cd9fcd9070056fe70b28dee9 /include/ec_commands.h | |
parent | 3c8257a31ea4ab522e65721ad20f133e86d0c955 (diff) | |
download | chrome-ec-23a542566b89d5f00dbd3f5442e63f6d0cbf7477.tar.gz |
System: Add SYSTEM_IN_MANUAL_RECOVERY flag
This patch adds SYSTEM_IN_MANUAL_RECOVERY, which indicates the system
is in recovery mode.
It's set when EC_HOST_EVENT_KEYBOARD_RECOVERY is set and cleared when
the system shuts down (not when the host event flag is cleared).
BUG=b:188242794
BRANCH=None
TEST=Verify sysinfo command prints 'Recovery: yes' in recovery screen.
TEST=Verify sysinfo command prints 'Recovery: no' after shutting down
from recovery screen.
Change-Id: I357e25fa4072cb4549dbe2c6bd476b0a93ccbb38
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3001190
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index bda9bb5378..d1b5b3ea90 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -1949,7 +1949,13 @@ enum sysinfo_flags { SYSTEM_IS_FORCE_LOCKED = BIT(1), SYSTEM_JUMP_ENABLED = BIT(2), SYSTEM_JUMPED_TO_CURRENT_IMAGE = BIT(3), - SYSTEM_REBOOT_AT_SHUTDOWN = BIT(4) + SYSTEM_REBOOT_AT_SHUTDOWN = BIT(4), + /* + * Used internally. It's set when EC_HOST_EVENT_KEYBOARD_RECOVERY is + * set and cleared when the system shuts down (not when the host event + * flag is cleared). + */ + SYSTEM_IN_MANUAL_RECOVERY = BIT(5), }; struct ec_response_sysinfo { |