diff options
author | Martin Roth <martinroth@google.com> | 2016-01-05 19:40:41 -0700 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-01-13 17:52:46 +0100 |
commit | cbe38923d9da5b0f7fb1ccd9696d483b2e63429a (patch) | |
tree | e4260b894c351dfae1ce4c6fab628c3e288b26ed /src/northbridge/intel/x4x/iomap.h | |
parent | d274c99ad73c60e93ee22e33f4794e47ec3ffb52 (diff) |
northbridge/intel/x4x: clean up includes
- Don't redefine D0F0_PCIEXBAR_LO, use the #define in x4x.h
- Move TPMBASE and TPM32() definitions into iomap.h
- Use "" style include for x4x.h in nortbridge files.
- Move includes of .h files out of x4x.h and into the c files that need
them.
- Protect function definitions in bootblock.
Change-Id: I3fdb579235c5446733a0ffba05fffe1a73381251
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/12849
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/northbridge/intel/x4x/iomap.h')
-rw-r--r-- | src/northbridge/intel/x4x/iomap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/northbridge/intel/x4x/iomap.h b/src/northbridge/intel/x4x/iomap.h index 34153c1b4a..fc25f9ca46 100644 --- a/src/northbridge/intel/x4x/iomap.h +++ b/src/northbridge/intel/x4x/iomap.h @@ -25,4 +25,7 @@ #define DEFAULT_EPBAR 0xfed19000 /* 4 KB */ #define DEFAULT_HECIBAR 0xfed10000 +#define TPMBASE 0xfed40000 +#define TPM32(x) *((volatile u32 *)(TPMBASE + x)) + #endif /* X4X_IOMAP_H */ |