summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-05-15 11:57:08 +0200
committerTom Rini <trini@konsulko.com>2018-05-25 20:12:55 -0400
commitff32245bb3b57689cd7b1699ae29ff8fc0edc0d8 (patch)
treefacec1175fc0f7181817d13128d5d3e8214d2830 /drivers
parent3219cf693a1674650eba2a57d4bf8c87d9f21752 (diff)
downloadu-boot-ff32245bb3b57689cd7b1699ae29ff8fc0edc0d8.tar.gz
u-boot-ff32245bb3b57689cd7b1699ae29ff8fc0edc0d8.tar.bz2
u-boot-ff32245bb3b57689cd7b1699ae29ff8fc0edc0d8.zip
tpm: prepare support for TPMv2.x commands
Choice between v1 and v2 compliant functions is done with the configuration. Create the various files that will receive TPMv2-only code on the same scheme as for the TPMv1 code. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tpm/tpm-uclass.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tpm/tpm-uclass.c b/drivers/tpm/tpm-uclass.c
index 9488b091a2..412697eedc 100644
--- a/drivers/tpm/tpm-uclass.c
+++ b/drivers/tpm/tpm-uclass.c
@@ -9,6 +9,8 @@
#include <linux/unaligned/be_byteshift.h>
#if defined(CONFIG_TPM_V1)
#include <tpm-v1.h>
+#elif defined(CONFIG_TPM_V2)
+#include <tpm-v2.h>
#endif
#include "tpm_internal.h"