blob: 89c9fbf19c1403a79820492b8724567a88da2bd0 [file] [log] [blame]
Damien Zammitf7060f12015-11-14 00:59:21 +11001/*
2 * This file is part of the coreboot project.
3 *
Damien Zammitf7060f12015-11-14 00:59:21 +11004 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; version 2 of
8 * the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include "hostbridge.asl"
17#include "../iomap.h"
Elyes HAOUAS4ec67fc2019-10-30 12:39:17 +010018#include <southbridge/intel/common/rcba.h>
Damien Zammitf7060f12015-11-14 00:59:21 +110019
20/* PCI Device Resource Consumption */
21Device (PDRC)
22{
23 Name (_HID, EISAID("PNP0C02"))
24 Name (_UID, 1)
25
26 /* This does not seem to work correctly yet - set values statically for
27 * now.
28 */
29
30 Name (PDRS, ResourceTemplate() {
Elyes HAOUAS4ec67fc2019-10-30 12:39:17 +010031 Memory32Fixed(ReadWrite, DEFAULT_RCBA, 0x00004000)
Damien Zammitf7060f12015-11-14 00:59:21 +110032 Memory32Fixed(ReadWrite, DEFAULT_MCHBAR, 0x00004000)
33 Memory32Fixed(ReadWrite, DEFAULT_DMIBAR, 0x00001000)
34 Memory32Fixed(ReadWrite, DEFAULT_EPBAR, 0x00001000)
Kyösti Mälkki503d3242019-03-05 07:54:28 +020035 Memory32Fixed(ReadWrite, CONFIG_MMCONF_BASE_ADDRESS, 0x10000000)
Damien Zammitf7060f12015-11-14 00:59:21 +110036 Memory32Fixed(ReadWrite, 0xfed20000, 0x00020000) /* Misc ICH */
37 Memory32Fixed(ReadWrite, 0xfed40000, 0x00005000) /* Misc ICH */
38 Memory32Fixed(ReadWrite, 0xfed45000, 0x0004b000) /* Misc ICH */
39 })
40
41 /* Current Resource Settings */
42 Method (_CRS, 0, Serialized)
43 {
44 Return(PDRS)
45 }
46}
47
48// PCIe graphics port 0:1.0
49#include "peg.asl"