summaryrefslogtreecommitdiff
path: root/arch/sandbox/dts/test.dts
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-02-21 06:24:51 -0700
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2023-02-28 09:44:30 +0200
commit4fef65715196364cb28ddbd7396b6015d78c778c (patch)
tree4ca86c299bbd5c3db8a58aa522c6efebd20a7fa5 /arch/sandbox/dts/test.dts
parent1b11de766f053dceb785c1fb8f587638880396b2 (diff)
downloadu-boot-4fef65715196364cb28ddbd7396b6015d78c778c.tar.gz
u-boot-4fef65715196364cb28ddbd7396b6015d78c778c.tar.bz2
u-boot-4fef65715196364cb28ddbd7396b6015d78c778c.zip
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>
Diffstat (limited to 'arch/sandbox/dts/test.dts')
-rw-r--r--arch/sandbox/dts/test.dts4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 05e09128a3..d72d7a567a 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -1367,6 +1367,10 @@
compatible = "sandbox,tpm2";
};
+ tpm {
+ compatible = "google,sandbox-tpm";
+ };
+
uart0: serial {
compatible = "sandbox,serial";
bootph-all;