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