summaryrefslogtreecommitdiff
path: root/firmware/2lib/include/2return_codes.h
diff options
context:
space:
mode:
authorMatt Delco <delco@google.com>2019-02-13 15:54:24 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-20 19:51:14 -0700
commit08bf680ff38c345928cf3907d6369d767c3df6ef (patch)
treefb11094f87cf986b22d9a28676a961846c182438 /firmware/2lib/include/2return_codes.h
parentd2b18dfbf91e6631516dfedce8bb4bf8696cc288 (diff)
downloadvboot-08bf680ff38c345928cf3907d6369d767c3df6ef.tar.gz
2api: add callback for vb2ex_tpm_set_mode
Add vboot2 callback for tpm_set_mode. This is mostly a cherry-pick of these: https://chromium-review.googlesource.com/c/1354139 https://chromium-review.googlesource.com/c/1365293 The re-enable of the tpm is now performed by coreboot so this version doesn't implement tpm_get_mode. BUG=b:124358784 BRANCH=None TEST=compile vboot_reference and depthcharge CQ-DEPEND=CL:1471195 Change-Id: I4168b50650e22f35ad9c66d49f34b689c46a36e1 Signed-off-by: Matt Delco <delco@google.com> Reviewed-on: https://chromium-review.googlesource.com/1470962 Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'firmware/2lib/include/2return_codes.h')
-rw-r--r--firmware/2lib/include/2return_codes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/2lib/include/2return_codes.h b/firmware/2lib/include/2return_codes.h
index b60c41a2..3cc01010 100644
--- a/firmware/2lib/include/2return_codes.h
+++ b/firmware/2lib/include/2return_codes.h
@@ -606,6 +606,8 @@ enum vb2_return_code {
/* Hardware crypto engine doesn't support this algorithm (non-fatal) */
VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED,
+ /* TPM does not understand this command */
+ VB2_ERROR_EX_TPM_NO_SUCH_COMMAND,
/**********************************************************************
* Errors generated by host library (non-firmware) start here.