Angel Pons | 4b42983 | 2020-04-02 23:48:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Damien Zammit | f7060f1 | 2015-11-14 00:59:21 +1100 | [diff] [blame] | 2 | |
| 3 | #include "hostbridge.asl" |
Angel Pons | d25e2f6 | 2020-09-15 00:48:16 +0200 | [diff] [blame] | 4 | #include "../memmap.h" |
Elyes HAOUAS | 4ec67fc | 2019-10-30 12:39:17 +0100 | [diff] [blame] | 5 | #include <southbridge/intel/common/rcba.h> |
Damien Zammit | f7060f1 | 2015-11-14 00:59:21 +1100 | [diff] [blame] | 6 | |
| 7 | /* PCI Device Resource Consumption */ |
| 8 | Device (PDRC) |
| 9 | { |
| 10 | Name (_HID, EISAID("PNP0C02")) |
| 11 | Name (_UID, 1) |
| 12 | |
Angel Pons | 4d962b2 | 2020-07-07 03:00:24 +0200 | [diff] [blame] | 13 | /* This does not seem to work correctly yet - set values statically for now. */ |
Damien Zammit | f7060f1 | 2015-11-14 00:59:21 +1100 | [diff] [blame] | 14 | |
| 15 | Name (PDRS, ResourceTemplate() { |
Elyes HAOUAS | 4ec67fc | 2019-10-30 12:39:17 +0100 | [diff] [blame] | 16 | Memory32Fixed(ReadWrite, DEFAULT_RCBA, 0x00004000) |
Damien Zammit | f7060f1 | 2015-11-14 00:59:21 +1100 | [diff] [blame] | 17 | Memory32Fixed(ReadWrite, DEFAULT_MCHBAR, 0x00004000) |
| 18 | Memory32Fixed(ReadWrite, DEFAULT_DMIBAR, 0x00001000) |
| 19 | Memory32Fixed(ReadWrite, DEFAULT_EPBAR, 0x00001000) |
Kyösti Mälkki | 503d324 | 2019-03-05 07:54:28 +0200 | [diff] [blame] | 20 | Memory32Fixed(ReadWrite, CONFIG_MMCONF_BASE_ADDRESS, 0x10000000) |
Damien Zammit | f7060f1 | 2015-11-14 00:59:21 +1100 | [diff] [blame] | 21 | Memory32Fixed(ReadWrite, 0xfed20000, 0x00020000) /* Misc ICH */ |
| 22 | Memory32Fixed(ReadWrite, 0xfed40000, 0x00005000) /* Misc ICH */ |
| 23 | Memory32Fixed(ReadWrite, 0xfed45000, 0x0004b000) /* Misc ICH */ |
| 24 | }) |
| 25 | |
| 26 | /* Current Resource Settings */ |
| 27 | Method (_CRS, 0, Serialized) |
| 28 | { |
| 29 | Return(PDRS) |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | // PCIe graphics port 0:1.0 |
| 34 | #include "peg.asl" |
Matt DeVillier | c6589ae | 2020-11-28 13:17:54 -0600 | [diff] [blame] | 35 | |
| 36 | // Integrated graphics 0:2.0 |
| 37 | #include <drivers/intel/gma/acpi/gfx.asl> |