diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2019-10-22 15:36:59 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-14 07:22:12 +0000 |
commit | 5d874c2f45c991651a3c66be64e4139f56c69d25 (patch) | |
tree | 74db1c55665f0c2a07d3368f3745b3cbee4d6343 /firmware/include/vboot_api.h | |
parent | 35edb575304447c68be8c7298610203ee98d94e0 (diff) | |
download | vboot-5d874c2f45c991651a3c66be64e4139f56c69d25.tar.gz |
EC software sync: Split up EC and auxfw sync
Currently, the logic for updating auxfw is entangled with the logic
for performing EC software sync. This patch attempts to split them
apart, so that they can be used separately. VbSelectAndLoadKernel()
currently still performs both, EC first and then auxfw. The intended
use-case for this functionality is to perform EC software sync only in
coreboot's romstage. Unit tests were updated to ensure functionality
is effectively unchanged.
BUG=b:143094352, chromium:1016688
BRANCH=none
TEST=make clean && make runtests
Change-Id: I7bdf38694cfed83b18dd8189b8516780184ecc8e
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1867314
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'firmware/include/vboot_api.h')
-rw-r--r-- | firmware/include/vboot_api.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h index 374bf85b..a1282974 100644 --- a/firmware/include/vboot_api.h +++ b/firmware/include/vboot_api.h @@ -720,46 +720,6 @@ vb2_error_t vb2ex_ec_vboot_done(struct vb2_context *ctx); */ vb2_error_t vb2ex_ec_battery_cutoff(void); -/* - * severity levels for an auxiliary firmware update request - */ -enum vb2_auxfw_update_severity { - /* no update needed and no protection needed */ - VB_AUX_FW_NO_DEVICE = 0, - /* no update needed */ - VB_AUX_FW_NO_UPDATE = 1, - /* update needed, can be done quickly */ - VB_AUX_FW_FAST_UPDATE = 2, - /* update needed, "this would take a while..." */ - VB_AUX_FW_SLOW_UPDATE = 3, -}; - -/** - * Perform auxiliary firmware checks. - * - * This is called after the EC has been updated and is intended to - * version-check additional firmware blobs such as TCPCs. - * - * @param severity return parameter for health of auxiliary firmware - * 0: no update needed - * 1: fast update needed - * 2: slow update needed - * @return VB2_SUCCESS, or error code on error. - */ - -vb2_error_t vb2ex_auxfw_check(enum vb2_auxfw_update_severity *severity); - -/** - * Perform auxiliary firmware update(s). - * - * This is called after the EC has been updated and is intended to - * update additional firmware blobs such as TCPCs. - * - * @return VB2_SUCCESS, or error code on error. - */ - -vb2_error_t vb2ex_auxfw_update(void); - /*****************************************************************************/ /* Misc */ |