diff options
author | Karthikeyan Ramasubramanian <kramasub@chromium.org> | 2018-10-25 09:51:21 -0600 |
---|---|---|
committer | Martin Roth <martinroth@chromium.org> | 2018-11-27 23:18:37 +0000 |
commit | 63be7c35d788405c0eb851416f5bef9e7185183c (patch) | |
tree | 00bae09d8436acb1fe44e0de003fa424171359fc | |
parent | c15147f0b5a819dbc58bf9771a400b02c85df4fb (diff) | |
download | vboot-63be7c35d788405c0eb851416f5bef9e7185183c.tar.gz |
vboot_api: Add new VB_AUX_FW_NO_DEVICE update severity
There is a possibility that a registered device is not present at
run-time and this scenario needs to be handled a little different. Add a
new update severity to handle this situation.
BUG=chromium:896451
BRANCH=None
TEST=bootup to ChromeOS by connecting and disconnecting the USB
daughterboard
Change-Id: I8a2044ce6a10fe611ee1f47262a7b54598a53ce3
Signed-off-by: Karthikeyan Ramasubramanian <kramasub@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1299993
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/1352629
Reviewed-by: Martin Roth <martinroth@chromium.org>
Tested-by: Martin Roth <martinroth@chromium.org>
-rw-r--r-- | firmware/include/vboot_api.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h index 5eedcaab..904e5a20 100644 --- a/firmware/include/vboot_api.h +++ b/firmware/include/vboot_api.h @@ -893,12 +893,14 @@ VbError_t VbExEcBatteryCutOff(void); * severity levels for an auxiliary firmware update request */ typedef enum { + /* no update needed and no protection needed */ + VB_AUX_FW_NO_DEVICE = 0, /* no update needed */ - VB_AUX_FW_NO_UPDATE = 0, + VB_AUX_FW_NO_UPDATE = 1, /* update needed, can be done quickly */ - VB_AUX_FW_FAST_UPDATE = 1, + VB_AUX_FW_FAST_UPDATE = 2, /* update needed, "this would take a while..." */ - VB_AUX_FW_SLOW_UPDATE = 2, + VB_AUX_FW_SLOW_UPDATE = 3, } VbAuxFwUpdateSeverity_t; /** |