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 <southbridge/intel/i82801ix/i82801ix.h> |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 5 | |
| 6 | /* PCI Device Resource Consumption */ |
| 7 | Device (PDRC) |
| 8 | { |
| 9 | Name (_HID, EISAID("PNP0C02")) |
| 10 | Name (_UID, 1) |
| 11 | |
| 12 | // This does not seem to work correctly yet - set values statically for |
| 13 | // now. |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 14 | Name (PDRS, ResourceTemplate() { |
Angel Pons | b70ff52 | 2021-01-28 14:27:46 +0100 | [diff] [blame] | 15 | Memory32Fixed(ReadWrite, CONFIG_FIXED_RCBA_MMIO_BASE, CONFIG_RCBA_LENGTH) |
Angel Pons | f462b3d | 2021-01-20 00:36:31 +0100 | [diff] [blame] | 16 | Memory32Fixed(ReadWrite, CONFIG_FIXED_MCHBAR_MMIO_BASE, 0x00004000) |
| 17 | Memory32Fixed(ReadWrite, CONFIG_FIXED_DMIBAR_MMIO_BASE, 0x00001000) |
| 18 | Memory32Fixed(ReadWrite, CONFIG_FIXED_EPBAR_MMIO_BASE, 0x00001000) |
Angel Pons | 1ac6f8b | 2021-01-20 13:13:26 +0100 | [diff] [blame] | 19 | Memory32Fixed(ReadWrite, CONFIG_MMCONF_BASE_ADDRESS, CONFIG_MMCONF_LENGTH) |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 20 | Memory32Fixed(ReadWrite, 0xfed20000, 0x00020000) // Misc ICH |
| 21 | Memory32Fixed(ReadWrite, 0xfed40000, 0x00005000) // Misc ICH |
| 22 | Memory32Fixed(ReadWrite, 0xfed45000, 0x0004b000) // Misc ICH |
| 23 | }) |
| 24 | |
| 25 | // Current Resource Settings |
| 26 | Method (_CRS, 0, Serialized) |
| 27 | { |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 28 | Return(PDRS) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | // PCIe graphics port 0:1.0 |
| 33 | #include "peg.asl" |
Matt DeVillier | c6589ae | 2020-11-28 13:17:54 -0600 | [diff] [blame] | 34 | |
| 35 | // Integrated graphics 0:2.0 |
| 36 | #include <drivers/intel/gma/acpi/gfx.asl> |