diff options
author | Karthikeyan Ramasubramanian <kramasub@chromium.org> | 2018-10-25 09:51:21 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-11-27 00:33:58 -0800 |
commit | 56042b642e11b7c84b7380da21833d1615483bca (patch) | |
tree | ef235db8642ced1473675cfab67ef13a081f1690 | |
parent | 356d5f1c866655af435400da91ecb6010f96ceb9 (diff) | |
download | vboot-56042b642e11b7c84b7380da21833d1615483bca.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>
-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; /** |