Angel Pons | 6e5aabd | 2020-03-23 23:44:42 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 2 | |
Duncan Laurie | 55864ef | 2012-07-16 12:27:42 -0700 | [diff] [blame] | 3 | #include "hostbridge.asl" |
Patrick Rudolph | 0b643d2 | 2017-07-05 20:07:06 +0200 | [diff] [blame] | 4 | #include "peg.asl" |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 5 | |
| 6 | /* PCI Device Resource Consumption */ |
| 7 | Device (PDRC) |
| 8 | { |
| 9 | Name (_HID, EISAID("PNP0C02")) |
| 10 | Name (_UID, 1) |
| 11 | |
| 12 | Name (PDRS, ResourceTemplate() { |
Angel Pons | b70ff52 | 2021-01-28 14:27:46 +0100 | [diff] [blame] | 13 | Memory32Fixed(ReadWrite, CONFIG_FIXED_RCBA_MMIO_BASE, CONFIG_RCBA_LENGTH) |
Patrick Rudolph | 2af2f2c | 2019-03-26 14:33:16 +0100 | [diff] [blame] | 14 | // Filled by _CRS |
| 15 | Memory32Fixed(ReadWrite, 0, 0x00008000, MCHB) |
| 16 | Memory32Fixed(ReadWrite, 0, 0x00001000, DMIB) |
| 17 | Memory32Fixed(ReadWrite, 0, 0x00001000, EGPB) |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 18 | Memory32Fixed(ReadWrite, 0xfed20000, 0x00020000) // Misc ICH |
Patrick Rudolph | 2af2f2c | 2019-03-26 14:33:16 +0100 | [diff] [blame] | 19 | Memory32Fixed(ReadWrite, 0xfed40000, 0x00005000) // TPM TIS |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 20 | Memory32Fixed(ReadWrite, 0xfed45000, 0x0004b000) // Misc ICH |
| 21 | |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 22 | /* Required for SandyBridge sighting 3715511 */ |
| 23 | Memory32Fixed(ReadWrite, 0x20000000, 0x00200000) |
| 24 | Memory32Fixed(ReadWrite, 0x40000000, 0x00200000) |
| 25 | }) |
| 26 | |
| 27 | // Current Resource Settings |
| 28 | Method (_CRS, 0, Serialized) |
| 29 | { |
Patrick Rudolph | 2af2f2c | 2019-03-26 14:33:16 +0100 | [diff] [blame] | 30 | CreateDwordField (PDRS, ^MCHB._BAS, MBR0) |
| 31 | MBR0 = \_SB.PCI0.MCHC.MHBR << 15 |
| 32 | |
| 33 | CreateDwordField (PDRS, ^DMIB._BAS, DBR0) |
| 34 | DBR0 = \_SB.PCI0.MCHC.DMBR << 12 |
| 35 | |
| 36 | CreateDwordField (PDRS, ^EGPB._BAS, EBR0) |
| 37 | EBR0 = \_SB.PCI0.MCHC.EPBR << 12 |
| 38 | |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 39 | Return(PDRS) |
| 40 | } |
| 41 | } |
Matt DeVillier | c6589ae | 2020-11-28 13:17:54 -0600 | [diff] [blame] | 42 | |
| 43 | /* Integrated graphics 0:2.0 */ |
| 44 | #include <drivers/intel/gma/acpi/gfx.asl> |