summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRaymond Mao <[email protected]>2025-01-27 06:58:46 -0800
committerIlias Apalodimas <[email protected]>2025-01-28 08:58:41 +0200
commit6d8e52a6e350e1dbf450d02fccdb2ac2b0c036e4 (patch)
tree0c416059b146175926a4a6414df061cd4a9268bd /include
parenta517796cfa5d8f4ca2f0c11c78c24a08a102c047 (diff)
tpm: add TPM2_Shutdown command
TPM2_shutdown command is sharing same structure and logics with TPM2_startup, thus this patch extends the existing startup APIs and cmd functions to support shutdown instead of created new ones. Signed-off-by: Raymond Mao <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]> Signed-off-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/tpm-v2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tpm-v2.h b/include/tpm-v2.h
index 65681464b37..f66a8e1bf41 100644
--- a/include/tpm-v2.h
+++ b/include/tpm-v2.h
@@ -230,6 +230,7 @@ enum tpm2_command_codes {
TPM2_CC_PCR_READ = 0x017E,
TPM2_CC_PCR_EXTEND = 0x0182,
TPM2_CC_PCR_SETAUTHVAL = 0x0183,
+ TPM2_CC_SHUTDOWN = 0x0145,
};
/**
@@ -430,7 +431,7 @@ enum {
*
* Return: code of the operation
*/
-u32 tpm2_startup(struct udevice *dev, enum tpm2_startup_types mode);
+u32 tpm2_startup(struct udevice *dev, bool onoff, enum tpm2_startup_types mode);
/**
* Issue a TPM2_SelfTest command.