Damien Zammit | 43a1f78 | 2015-08-19 15:16:59 +1000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2015 Damien Zammit <damien@zamaudio.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation; either version 2 of |
| 9 | * the License, or (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | |
| 17 | #ifndef X4X_IOMAP_H |
| 18 | #define X4X_IOMAP_H |
| 19 | |
| 20 | /* 4 KB per PCIe device */ |
| 21 | #define DEFAULT_PCIEXBAR CONFIG_MMCONF_BASE_ADDRESS |
| 22 | |
| 23 | #define DEFAULT_MCHBAR 0xfed14000 /* 16 KB */ |
| 24 | #define DEFAULT_DMIBAR 0xfed18000 /* 4 KB */ |
| 25 | #define DEFAULT_EPBAR 0xfed19000 /* 4 KB */ |
| 26 | #define DEFAULT_HECIBAR 0xfed10000 |
| 27 | |
Martin Roth | cbe3892 | 2016-01-05 19:40:41 -0700 | [diff] [blame] | 28 | #define TPMBASE 0xfed40000 |
Arthur Heymans | 70a1dda | 2017-03-09 01:58:24 +0100 | [diff] [blame^] | 29 | #define TPM32(x) (*((volatile u32 *)(TPMBASE + (x)))) |
Martin Roth | cbe3892 | 2016-01-05 19:40:41 -0700 | [diff] [blame] | 30 | |
Damien Zammit | 43a1f78 | 2015-08-19 15:16:59 +1000 | [diff] [blame] | 31 | #endif /* X4X_IOMAP_H */ |