diff options
author | Julius Werner <jwerner@chromium.org> | 2018-03-22 14:38:11 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-26 20:16:25 -0700 |
commit | 3f896a5b638c26632098ff9fdf563686a55c10dd (patch) | |
tree | fda5cb41a2c31c90a634848e233802a0a2e28e55 /firmware/include | |
parent | 754e56bff6911fdd667b6c03d8b7ba1269dba966 (diff) | |
download | vboot-3f896a5b638c26632098ff9fdf563686a55c10dd.tar.gz |
Add new GBB_FLAG_FORCE_MANUAL_RECOVERY
It seems like there are some testing use cases where we want the device
to boot into the recovery installer but it is impractical to fully
simulate a user-triggered recovery. This has become impossible with the
recent change to always require manual recovery to boot an image, even
when the developer mode switch is enabled (CL:924458).
This patch adds a new GBB flag to support this use case. When the flag
is set, all recovery mode is manual recovery mode, regardless of wheter
the developer mode switch is on or not.
Since the GBB_FLAG_ENABLE_SERIAL was killed off before it ever really
worked anyway, we can safely reuse the bit reserved for it.
BRANCH=None
BUG=None
TEST=make runtests, manually confirmed on Kevin
Change-Id: I4f51dfd20b4ff04c522f53596896dccbceee52dc
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/976660
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'firmware/include')
-rw-r--r-- | firmware/include/gbb_header.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/include/gbb_header.h b/firmware/include/gbb_header.h index 4503ffaa..11586e92 100644 --- a/firmware/include/gbb_header.h +++ b/firmware/include/gbb_header.h @@ -72,8 +72,8 @@ * dev_boot_fastboot_full_cap=0. */ #define GBB_FLAG_FORCE_DEV_BOOT_FASTBOOT_FULL_CAP 0x00002000 -/* Enable serial console */ -#define GBB_FLAG_ENABLE_SERIAL 0x00004000 +/* Recovery mode always assumes manual recovery, even if EC_IN_RW=1 */ +#define GBB_FLAG_FORCE_MANUAL_RECOVERY 0x00004000 /* Disable using FWMP */ #define GBB_FLAG_DISABLE_FWMP 0x00008000 |