From d0d0cf82ee95c353d6dd988303da77fb7b1ecc06 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Mon, 2 Jul 2018 10:17:20 -0600 Subject: vboot_aux_fw: Add new return code to handle busy case We do not want to upgrade the TCPC firmware if the TCPC is the only source of power. Use this new return code to communicate to depthcharge that we do not want upgrade at this time. BRANCH=none BUG=b:78334391 TEST=if PS8751 is the only source of power, then upgrade will gracefully skip. Change-Id: I062c79a2d01f779c30873d48ff4301aca071cca3 Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/1123105 Reviewed-by: Simon Glass Reviewed-by: Furquan Shaikh Reviewed-by: Duncan Laurie --- firmware/include/vboot_api.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/include/vboot_api.h b/firmware/include/vboot_api.h index 04836ff8..aa408cd1 100644 --- a/firmware/include/vboot_api.h +++ b/firmware/include/vboot_api.h @@ -130,6 +130,8 @@ enum VbErrorPredefined_t { VBERROR_RW_JUMP_FAILED = 0x10028, /* Error reading FWMP from TPM (note: not present is not an error) */ VBERROR_TPM_READ_FWMP = 0x10029, + /* Peripheral busy. Cannot upgrade firmware at present. */ + VBERROR_PERIPHERAL_BUSY = 0x10030, /* VbExEcGetExpectedRWHash() may return the following codes */ /* Compute expected RW hash from the EC image; BIOS doesn't have it */ -- cgit v1.2.1