Patrick Georgi | ac95903 | 2020-05-05 22:49:26 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Damien Zammit | 43a1f78 | 2015-08-19 15:16:59 +1000 | [diff] [blame] | 2 | |
| 3 | #ifndef X4X_IOMAP_H |
| 4 | #define X4X_IOMAP_H |
| 5 | |
Damien Zammit | 43a1f78 | 2015-08-19 15:16:59 +1000 | [diff] [blame] | 6 | #define DEFAULT_MCHBAR 0xfed14000 /* 16 KB */ |
| 7 | #define DEFAULT_DMIBAR 0xfed18000 /* 4 KB */ |
| 8 | #define DEFAULT_EPBAR 0xfed19000 /* 4 KB */ |
| 9 | #define DEFAULT_HECIBAR 0xfed10000 |
| 10 | |
Martin Roth | cbe3892 | 2016-01-05 19:40:41 -0700 | [diff] [blame] | 11 | #define TPMBASE 0xfed40000 |
Arthur Heymans | 70a1dda | 2017-03-09 01:58:24 +0100 | [diff] [blame] | 12 | #define TPM32(x) (*((volatile u32 *)(TPMBASE + (x)))) |
Martin Roth | cbe3892 | 2016-01-05 19:40:41 -0700 | [diff] [blame] | 13 | |
Damien Zammit | 43a1f78 | 2015-08-19 15:16:59 +1000 | [diff] [blame] | 14 | #endif /* X4X_IOMAP_H */ |