blob: db608c53084808003657c4935d2964383ef94ab9 [file] [log] [blame]
Damien Zammit43a1f782015-08-19 15:16:59 +10001/*
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 Rothcbe38922016-01-05 19:40:41 -070028#define TPMBASE 0xfed40000
Arthur Heymans70a1dda2017-03-09 01:58:24 +010029#define TPM32(x) (*((volatile u32 *)(TPMBASE + (x))))
Martin Rothcbe38922016-01-05 19:40:41 -070030
Damien Zammit43a1f782015-08-19 15:16:59 +100031#endif /* X4X_IOMAP_H */