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 | 6e732d3 | 2021-01-28 13:56:18 +0100 | [diff] [blame] | 13 | Memory32Fixed(ReadWrite, CONFIG_FIXED_RCBA_MMIO_BASE, 0x00004000) |
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) |
| 18 | Memory32Fixed(ReadWrite, 0, 0x04000000, PCIX) |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 19 | Memory32Fixed(ReadWrite, 0xfed20000, 0x00020000) // Misc ICH |
Patrick Rudolph | 2af2f2c | 2019-03-26 14:33:16 +0100 | [diff] [blame] | 20 | Memory32Fixed(ReadWrite, 0xfed40000, 0x00005000) // TPM TIS |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 21 | Memory32Fixed(ReadWrite, 0xfed45000, 0x0004b000) // Misc ICH |
| 22 | |
Julius Werner | cd49cce | 2019-03-05 16:53:33 -0800 | [diff] [blame] | 23 | #if CONFIG(CHROMEOS_RAMOOPS) |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 24 | Memory32Fixed(ReadWrite, CONFIG_CHROMEOS_RAMOOPS_RAM_START, |
| 25 | CONFIG_CHROMEOS_RAMOOPS_RAM_SIZE) |
| 26 | #endif |
| 27 | |
| 28 | /* Required for SandyBridge sighting 3715511 */ |
| 29 | Memory32Fixed(ReadWrite, 0x20000000, 0x00200000) |
| 30 | Memory32Fixed(ReadWrite, 0x40000000, 0x00200000) |
| 31 | }) |
| 32 | |
| 33 | // Current Resource Settings |
| 34 | Method (_CRS, 0, Serialized) |
| 35 | { |
Patrick Rudolph | 2af2f2c | 2019-03-26 14:33:16 +0100 | [diff] [blame] | 36 | CreateDwordField (PDRS, ^MCHB._BAS, MBR0) |
| 37 | MBR0 = \_SB.PCI0.MCHC.MHBR << 15 |
| 38 | |
| 39 | CreateDwordField (PDRS, ^DMIB._BAS, DBR0) |
| 40 | DBR0 = \_SB.PCI0.MCHC.DMBR << 12 |
| 41 | |
| 42 | CreateDwordField (PDRS, ^EGPB._BAS, EBR0) |
| 43 | EBR0 = \_SB.PCI0.MCHC.EPBR << 12 |
| 44 | |
| 45 | CreateDwordField (PDRS, ^PCIX._BAS, XBR0) |
| 46 | XBR0 = \_SB.PCI0.MCHC.PXBR << 26 |
| 47 | |
| 48 | CreateDwordField (PDRS, ^PCIX._LEN, XSZ0) |
Patrick Rudolph | 5a62427 | 2020-02-11 16:02:11 +0100 | [diff] [blame] | 49 | XSZ0 = 0x10000000 >> \_SB.PCI0.MCHC.PXSZ |
Patrick Rudolph | 2af2f2c | 2019-03-26 14:33:16 +0100 | [diff] [blame] | 50 | |
Stefan Reinauer | 00636b0 | 2012-04-04 00:08:51 +0200 | [diff] [blame] | 51 | Return(PDRS) |
| 52 | } |
| 53 | } |
Matt DeVillier | c6589ae | 2020-11-28 13:17:54 -0600 | [diff] [blame] | 54 | |
| 55 | /* Integrated graphics 0:2.0 */ |
| 56 | #include <drivers/intel/gma/acpi/gfx.asl> |