]> git.baikalelectronics.ru Git - uboot.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)
commit84055e0fb1e2e6f2144a17398a0208a1e1816049
tree4ca86c299bbd5c3db8a58aa522c6efebd20a7fa5
parent6241a6098db3cec63d19429a001aa6d9f214d3cb
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