summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-07-02 10:17:20 -0600
committerchrome-bot <chrome-bot@chromium.org>2018-07-03 11:41:01 -0700
commitd0d0cf82ee95c353d6dd988303da77fb7b1ecc06 (patch)
tree71513293400e109ed81a95199f4db654d386def8
parentda8a0d701c563eb93ebfa944f4997bddc0ae67d4 (diff)
downloadvboot-stabilize-10866.B.tar.gz
vboot_aux_fw: Add new return code to handle busy casestabilize-10866.B
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 <jettrink@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1123105 Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@google.com>
-rw-r--r--firmware/include/vboot_api.h2
1 files changed, 2 insertions, 0 deletions
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 */