aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/x4x/iomap.h
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-09-15 02:26:29 +0200
committerAngel Pons <th3fanbus@gmail.com>2020-09-17 20:00:17 +0000
commitb8b117c7e72ceb641c14db499a2c004fdfaf64f9 (patch)
tree18bc8e7140eafaf1f91dee91fad9d145aec337ed /src/northbridge/intel/x4x/iomap.h
parent6549661b9cc94add8c203a26f5f29af255668e4e (diff)
nb/intel/x4x: Clean up TPM-related code
Perform the read to the TPM base address using <arch/mmio.h> functions. Remove dead variable assignment and rename TPM base address macro. Tested with BUILD_TIMELESS=1. Asus P5QL PRO remains identical. Change-Id: I11d737903c57fce768b760fe717564dae8879ad0 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45389 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/northbridge/intel/x4x/iomap.h')
-rw-r--r--src/northbridge/intel/x4x/iomap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/northbridge/intel/x4x/iomap.h b/src/northbridge/intel/x4x/iomap.h
index d016cf74af..22a675fc42 100644
--- a/src/northbridge/intel/x4x/iomap.h
+++ b/src/northbridge/intel/x4x/iomap.h
@@ -8,7 +8,6 @@
#define DEFAULT_EPBAR 0xfed19000 /* 4 KB */
#define DEFAULT_HECIBAR 0xfed10000
-#define TPMBASE 0xfed40000
-#define TPM32(x) (*((volatile u32 *)(TPMBASE + (x))))
+#define TPM_BASE_ADDRESS 0xfed40000
#endif /* X4X_IOMAP_H */