summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJett Rink <jettrink@chromium.org>2018-07-02 10:17:20 -0600
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2018-11-15 23:20:08 +0000
commit11997fc7e7755ed44cd65b37ac9bedec8c06c8ef (patch)
treea91f996b426759211ff602e7c7a36d82573181fd
parentb87660be9fed088e9f25b41d505844027bc3b049 (diff)
downloadvboot-11997fc7e7755ed44cd65b37ac9bedec8c06c8ef.tar.gz
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. Signed-off-by: Duncan Laurie <dlaurie@google.com> Original-Commit-Id: d0d0cf82ee95c353d6dd988303da77fb7b1ecc06 Original-Change-Id: I062c79a2d01f779c30873d48ff4301aca071cca3 Original-Signed-off-by: Jett Rink <jettrink@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/1123105 Original-Reviewed-by: Simon Glass <sjg@chromium.org> Original-Reviewed-by: Furquan Shaikh <furquan@chromium.org> Original-Reviewed-by: Duncan Laurie <dlaurie@google.com> (cherry picked from commit d0d0cf82ee95c353d6dd988303da77fb7b1ecc06) Change-Id: I039f757b27047378a72274bc36d240f4cb584823 Reviewed-on: https://chromium-review.googlesource.com/c/1338370 Reviewed-by: Duncan Laurie <dlaurie@google.com> Commit-Queue: Duncan Laurie <dlaurie@google.com> Tested-by: Duncan Laurie <dlaurie@google.com> Trybot-Ready: 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 d1c91c33..b2fee396 100644
--- a/firmware/include/vboot_api.h
+++ b/firmware/include/vboot_api.h
@@ -126,6 +126,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 */