]> git.sur5r.net Git - u-boot/blobdiff - drivers/tpm/tpm-uclass.c
spi: xilinx_spi: Added support to read JEDEC-id twice at the boot time
[u-boot] / drivers / tpm / tpm-uclass.c
index e71545235cff29e1b1ea1930d6d8190395cc1efe..412697eedc4d49eeddd1ae35c3fe9973c979c9d9 100644 (file)
@@ -6,8 +6,12 @@
 
 #include <common.h>
 #include <dm.h>
-#include <tpm.h>
 #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"
 
 int tpm_open(struct udevice *dev)