tpm: sandbox: Support self-test continue in emulator
authorSimon Glass <sjg@chromium.org>
Sat, 24 May 2025 13:06:34 +0000 (07:06 -0600)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 10 Jun 2025 16:30:00 +0000 (19:30 +0300)
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@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/tpm/tpm_tis_sandbox.c

index 2bc7dc8..d734106 100644 (file)
@@ -221,6 +221,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);