mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
efi_loader: add EFI_TCG2_PROTOCOL.SubmitCommand
This commit adds the EFI_TCG2_PROTOCOL.SubmitCommand required in the TCG PC Client PFP spec. SubmitCommand enables to send the raw command to the TPM device. To implement this api, tpm2_submit_command() is added into tpm-v2.c. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
14cbb330fe
commit
7fc93cae49
3 changed files with 51 additions and 6 deletions
|
@ -659,3 +659,9 @@ u32 tpm2_disable_platform_hierarchy(struct udevice *dev)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
u32 tpm2_submit_command(struct udevice *dev, const u8 *sendbuf,
|
||||
u8 *recvbuf, size_t *recv_size)
|
||||
{
|
||||
return tpm_sendrecv_command(dev, sendbuf, recvbuf, recv_size);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue