[SeaBIOS] [PATCH 12/15] tpm: Temporary ioremap() hack for tpm_drivers

Kevin O'Connor kevin at koconnor.net
Thu Oct 1 04:04:15 CET 2015


Signed-off-by: Kevin O'Connor <kevin at koconnor.net>
---
 src/hw/tpm_drivers.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/hw/tpm_drivers.c b/src/hw/tpm_drivers.c
index 444eac3..8c92401 100644
--- a/src/hw/tpm_drivers.c
+++ b/src/hw/tpm_drivers.c
@@ -8,11 +8,12 @@
 // This file may be distributed under the terms of the GNU LGPLv3 license.
 
 #include "config.h" // CONFIG_TPM_TIS_SHA1THRESHOLD
+#include "hw/tpm_drivers.h" // struct tpm_driver
+#include "memmap.h" // ioremap
 #include "string.h" // memcpy
+#include "tcgbios.h" // TCG_*
 #include "util.h" // msleep
 #include "x86.h" // readl
-#include "hw/tpm_drivers.h" // struct tpm_driver
-#include "tcgbios.h" // TCG_*
 
 static const u32 tis_default_timeouts[4] = {
     TIS_DEFAULT_TIMEOUT_A,
@@ -39,6 +40,7 @@ static u32 tis_probe(void)
         return 0;
 
     u32 rc = 0;
+    ioremap(TPM_TIS_BASE_ADDRESS, 1); // XXX
     u32 didvid = readl(TIS_REG(0, TIS_REG_DID_VID));
 
     if ((didvid != 0) && (didvid != 0xffffffff))
-- 
2.4.3




More information about the SeaBIOS mailing list