]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm: Separate out the TPM tests for v1 and v2
authorSimon Glass <sjg@chromium.org>
Tue, 21 Feb 2023 13:24:51 +0000 (06:24 -0700)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 28 Feb 2023 07:44:30 +0000 (09:44 +0200)
commit4fef65715196364cb28ddbd7396b6015d78c778c
tree4ca86c299bbd5c3db8a58aa522c6efebd20a7fa5
parent1b11de766f053dceb785c1fb8f587638880396b2
tpm: Separate out the TPM tests for v1 and v2

Currently there is only one test and it only works on TPM v2. Update it
to work on v1.2 as well, using a new function to pick up the required
TPM.

Update sandbox to include both a v1.2 and v2 TPM so that this works.
Split out the existing test into two pieces, one for init and one for
the v2-only report_state feature.

Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
arch/sandbox/dts/test.dts
test/dm/tpm.c