diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-01 11:55:17 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-10-09 04:40:27 -0600 |
commit | 998af319031f9c5ac89228e532a6802455c0f65b (patch) | |
tree | c2a349ec36400d673c753f71a6d40e6f2d4b4ace /include/tpm-v2.h | |
parent | 114b60a7e62db25bcf26d5dddcfabecbc0160086 (diff) | |
download | u-boot-998af319031f9c5ac89228e532a6802455c0f65b.tar.gz |
sandbox: tpm: Tidy up enums and return values
Use an enum for command values instead of open-coding them. This removes
the need for comments. Also make sure the driver returns proper error
numbers instead of -1.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/tpm-v2.h')
-rw-r--r-- | include/tpm-v2.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/tpm-v2.h b/include/tpm-v2.h index 780e061975..c77b416182 100644 --- a/include/tpm-v2.h +++ b/include/tpm-v2.h @@ -83,6 +83,7 @@ enum tpm2_command_codes { TPM2_CC_PCR_SETAUTHPOL = 0x012C, TPM2_CC_DAM_RESET = 0x0139, TPM2_CC_DAM_PARAMETERS = 0x013A, + TPM2_CC_NV_READ = 0x014E, TPM2_CC_GET_CAPABILITY = 0x017A, TPM2_CC_PCR_READ = 0x017E, TPM2_CC_PCR_EXTEND = 0x0182, |