mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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 <raymond.mao@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
committed by
Ilias Apalodimas
parent
a517796cfa
commit
6d8e52a6e3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user