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" |
Damien Zammit | f7060f1 | 2015-11-14 00:59:21 +1100 | [diff] [blame] | 4 | |
| 5 | /* PCI Device Resource Consumption */ |
| 6 | Device (PDRC) |
| 7 | { |
| 8 | Name (_HID, EISAID("PNP0C02")) |
| 9 | Name (_UID, 1) |
| 10 | |
Angel Pons | 4d962b2 | 2020-07-07 03:00:24 +0200 | [diff] [blame] | 11 | /* 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] | 12 | |
| 13 | Name (PDRS, ResourceTemplate() { |
Angel Pons | b70ff52 | 2021-01-28 14:27:46 +0100 | [diff] [blame] | 14 | Memory32Fixed(ReadWrite, CONFIG_FIXED_RCBA_MMIO_BASE, CONFIG_RCBA_LENGTH) |
Angel Pons | 24b1d8a | 2021-01-20 12:00:31 +0100 | [diff] [blame] | 15 | Memory32Fixed(ReadWrite, CONFIG_FIXED_MCHBAR_MMIO_BASE, 0x00004000) |
| 16 | Memory32Fixed(ReadWrite, CONFIG_FIXED_DMIBAR_MMIO_BASE, 0x00001000) |
| 17 | Memory32Fixed(ReadWrite, CONFIG_FIXED_EPBAR_MMIO_BASE, 0x00001000) |
Damien Zammit | f7060f1 | 2015-11-14 00:59:21 +1100 | [diff] [blame] | 18 | Memory32Fixed(ReadWrite, 0xfed20000, 0x00020000) /* Misc ICH */ |
| 19 | Memory32Fixed(ReadWrite, 0xfed40000, 0x00005000) /* Misc ICH */ |
| 20 | Memory32Fixed(ReadWrite, 0xfed45000, 0x0004b000) /* Misc ICH */ |
| 21 | }) |
| 22 | |
| 23 | /* Current Resource Settings */ |
| 24 | Method (_CRS, 0, Serialized) |
| 25 | { |
| 26 | Return(PDRS) |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | // PCIe graphics port 0:1.0 |
| 31 | #include "peg.asl" |
Matt DeVillier | c6589ae | 2020-11-28 13:17:54 -0600 | [diff] [blame] | 32 | |
| 33 | // Integrated graphics 0:2.0 |
| 34 | #include <drivers/intel/gma/acpi/gfx.asl> |