diff options
author | Matt Delco <delco@google.com> | 2019-03-05 16:54:23 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-20 19:51:15 -0700 |
commit | 90a95ea62ade991769540f4a0c0e6465f3b3926c (patch) | |
tree | 2d62b8912e7688c96aea4f9bdd1b4779377b729a /tests | |
parent | 7a748886003bad0a8971ca17d23f6641bc05bf59 (diff) | |
download | vboot-90a95ea62ade991769540f4a0c0e6465f3b3926c.tar.gz |
firmware: allocate nvram bit for diagnostic mode
This change allocates a bit in the nvram that will be used
in a later change to tell the firmware whether to detour
to diagnostic mode during boot.
BUG=b:124358784
BRANCH=None
TEST=Local build and ran "make runtests". Verified with a later
change that the nvram bit takes effect as expected.
Change-Id: If2fd3f46da30fc7375d37b240e3e745819ae0632
Signed-off-by: Matt Delco <delco@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1504758
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vb2_nvstorage_tests.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/vb2_nvstorage_tests.c b/tests/vb2_nvstorage_tests.c index fe73216a..1dccdade 100644 --- a/tests/vb2_nvstorage_tests.c +++ b/tests/vb2_nvstorage_tests.c @@ -48,6 +48,7 @@ static struct nv_field nvfields[] = { {VB2_NV_DEV_BOOT_SIGNED_ONLY, 0, 1, 0, "dev boot custom"}, {VB2_NV_DEV_BOOT_FASTBOOT_FULL_CAP, 0, 1, 0, "dev boot fb full cap"}, {VB2_NV_DEV_DEFAULT_BOOT, 0, 1, 2, "dev default boot"}, + {VB2_NV_DIAG_REQUEST, 0, 1, 0, "diagnostic rom request"}, {VB2_NV_DISABLE_DEV_REQUEST, 0, 1, 0, "disable dev request"}, {VB2_NV_CLEAR_TPM_OWNER_REQUEST, 0, 1, 0, "clear tpm owner request"}, {VB2_NV_CLEAR_TPM_OWNER_DONE, 0, 1, 0, "clear tpm owner done"}, |