]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tpm: Remove <common.h> and add needed includes
authorTom Rini <trini@konsulko.com>
Thu, 2 May 2024 01:31:28 +0000 (19:31 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 7 May 2024 14:00:56 +0000 (08:00 -0600)
Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
15 files changed:
drivers/tpm/cr50_i2c.c
drivers/tpm/sandbox_common.c
drivers/tpm/tpm-uclass.c
drivers/tpm/tpm2_ftpm_tee.c
drivers/tpm/tpm2_tis_core.c
drivers/tpm/tpm2_tis_i2c.c
drivers/tpm/tpm2_tis_mmio.c
drivers/tpm/tpm2_tis_sandbox.c
drivers/tpm/tpm2_tis_spi.c
drivers/tpm/tpm_atmel_twi.c
drivers/tpm/tpm_tis_infineon.c
drivers/tpm/tpm_tis_lpc.c
drivers/tpm/tpm_tis_sandbox.c
drivers/tpm/tpm_tis_st33zp24_i2c.c
drivers/tpm/tpm_tis_st33zp24_spi.c

index acf4c7859a9fa50afae18de3446bae974f4f1201..08ec179346e29d0dd3cb7da44b25b34d82e05a77 100644 (file)
@@ -7,12 +7,12 @@
 
 #define LOG_CATEGORY UCLASS_TPM
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <irq.h>
 #include <log.h>
 #include <spl.h>
+#include <time.h>
 #include <tpm-common.h>
 #include <tpm-v2.h>
 #include <acpi/acpigen.h>
index 7e0b2502e35da3de02db0823efee686dc6a807d1..596e0156389995a1274c96ae9d899cb01acd5fba 100644 (file)
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY   UCLASS_TPM
 
-#include <common.h>
 #include <tpm-v1.h>
 #include <tpm-v2.h>
 #include <asm/unaligned.h>
index b2286f7e7edc842e7e25f3cac6a39714e5395348..0fade2dcc0ad8b8ce35f5f831fe7b03c9ef96808 100644 (file)
@@ -6,9 +6,9 @@
 
 #define LOG_CATEGORY UCLASS_TPM
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <time.h>
 #include <tpm_api.h>
 #include <tpm-v1.h>
 #include <tpm-v2.h>
index c61ff2c2af63c3563dcf305cc76502a8dca93386..f2ced50c4eb7e3ca22da8daf6552595157750412 100644 (file)
@@ -13,7 +13,6 @@
  * https://github.com/microsoft/ms-tpm-20-ref/tree/master/Samples/ARM32-FirmwareTPM/optee_ta/fTPM
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <tpm-v2.h>
index 81b9210056db962100d6ecdccb81901280a8462c..680a6409433e8abd4cf1714a424b2da8b10a5acd 100644 (file)
@@ -5,8 +5,8 @@
  * Based on the Linux TIS core interface and U-Boot original SPI TPM driver
  */
 
-#include <common.h>
 #include <dm.h>
+#include <time.h>
 #include <tpm-v2.h>
 #include <linux/delay.h>
 #include <linux/unaligned/be_byteshift.h>
index 99d1cf218dafc2fdc8e97b2841a3dbe6e7bf0510..93efccc77575e486d744f7cc7cc06c09d7346635 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright 2022 IBM Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
index a646ce41ff4e05e8023eb10f7322de8ed5015c53..dee5503c055f810412b954b468b43522dceab07c 100644 (file)
@@ -5,7 +5,6 @@
  * Specifications at www.trustedcomputinggroup.org
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <tpm-v2.h>
index d15a28d9fc82d943a4b7b34f039c190471904dd7..50e308e711614b965512666b9b64c2efcc037e3d 100644 (file)
@@ -4,7 +4,6 @@
  * Author: Miquel Raynal <miquel.raynal@bootlin.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <tpm-v2.h>
 #include <asm/state.h>
index de9cf8f21e078576da483631bce84736fffea44c..28079b5039a3b44518f9acf0fea0b16c699bd42d 100644 (file)
  * It is based on the U-Boot driver tpm_tis_infineon_i2c.c.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
 #include <spi.h>
+#include <time.h>
 #include <tpm-v2.h>
 #include <linux/bitops.h>
 #include <linux/delay.h>
index fd2a45d34b03cf9942213844ec1bf0ab2e288b60..05dd66525c77e8ee13a45238e2bfc8f166479ed7 100644 (file)
@@ -5,11 +5,11 @@
  * Written by Dirk Eibach <dirk.eibach@gdsys.cc>
  */
 
-#include <common.h>
 #include <display_options.h>
 #include <dm.h>
 #include <tpm-v1.h>
 #include <i2c.h>
+#include <time.h>
 #include <asm/unaligned.h>
 #include <linux/delay.h>
 
index 16f4af0e331e11a7405d0c553ef3671e49c3b623..e2f6238cbc7115c97a580630384d2f309d01b460 100644 (file)
  * Version: 2.1.1
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
 #include <log.h>
+#include <time.h>
 #include <tpm-v1.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
index 13a133d58ebd1dbfea8c4d100041b986a0b8af7e..dec7acb0c7b16efd5f766978c2538829318816a5 100644 (file)
@@ -12,7 +12,6 @@
  * slb9635), so this driver provides access to locality 0 only.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <mapmem.h>
index 7350e1c4d525dfefb895eeedb26cfea402249707..2bc7dc87ed30013f703412c8daa5a6d29bdcf452 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <display_options.h>
 #include <dm.h>
 #include <tpm-v1.h>
index e0eeabb93371e0591f47ee4e8b63da14453a699a..1a265b28b22f8cf92b9b4fa9532d65de0174dd57 100644 (file)
@@ -12,7 +12,6 @@
  * STMicroelectronics Protocol Stack Specification version 1.2.0.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
index f0de8a65b093d9b4bbfe8999e130df94ba6147d2..2cf690328d871fad1aad4aceb0fd16c9746f185e 100644 (file)
@@ -12,7 +12,6 @@
  * STMicroelectronics Protocol Stack Specification version 1.2.0.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>