[PATCH 1/3] tpm: sandbox: Support self-test continue in emulator

Ilias Apalodimas ilias.apalodimas at linaro.org
Mon Oct 30 09:53:02 CET 2023


On Sun, Oct 29, 2023 at 05:28:12PM +1300, Simon Glass wrote:
> Add support for the self-test continue command in the TPM v1.2 emulator,
> to match the functionality in the TPM v2 emulator.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  drivers/tpm/tpm_tis_sandbox.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/tpm/tpm_tis_sandbox.c b/drivers/tpm/tpm_tis_sandbox.c
> index 7350e1c4d525..ca992eeb90f9 100644
> --- a/drivers/tpm/tpm_tis_sandbox.c
> +++ b/drivers/tpm/tpm_tis_sandbox.c
> @@ -222,6 +222,7 @@ static int sandbox_tpm_xfer(struct udevice *dev, const uint8_t *sendbuf,
>  	case 0x72: /* physical set deactivated */
>  	case 0x99: /* startup */
>  	case 0x50: /* self test full */
> +	case 0x53: /* self test continue */
>  	case 0x4000000a:  /* assert physical presence */
>  		*recv_len = 12;
>  		memset(recvbuf, '\0', *recv_len);
> -- 
> 2.42.0.820.g83a721a137-goog
> 

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>



More information about the U-Boot mailing list