blob: 8c5fb499ee889d122136fc18e38671348a9c3f2e [file] [log] [blame]
Angel Pons4b429832020-04-02 23:48:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Patrick Georgi2efc8802012-11-06 11:03:53 +01002
3#include "hostbridge.asl"
Angel Pons2f30e8c2020-09-16 13:29:21 +02004#include "../memmap.h"
5#include <southbridge/intel/i82801ix/i82801ix.h>
Patrick Georgi2efc8802012-11-06 11:03:53 +01006
7/* PCI Device Resource Consumption */
8Device (PDRC)
9{
10 Name (_HID, EISAID("PNP0C02"))
11 Name (_UID, 1)
12
13 // This does not seem to work correctly yet - set values statically for
14 // now.
Patrick Georgi2efc8802012-11-06 11:03:53 +010015 Name (PDRS, ResourceTemplate() {
Angel Pons6e732d32021-01-28 13:56:18 +010016 Memory32Fixed(ReadWrite, CONFIG_FIXED_RCBA_MMIO_BASE, 0x00004000)
Patrick Georgi2efc8802012-11-06 11:03:53 +010017 Memory32Fixed(ReadWrite, DEFAULT_MCHBAR, 0x00004000)
18 Memory32Fixed(ReadWrite, DEFAULT_DMIBAR, 0x00001000)
19 Memory32Fixed(ReadWrite, DEFAULT_EPBAR, 0x00001000)
Angel Pons1ac6f8b2021-01-20 13:13:26 +010020 Memory32Fixed(ReadWrite, CONFIG_MMCONF_BASE_ADDRESS, CONFIG_MMCONF_LENGTH)
Patrick Georgi2efc8802012-11-06 11:03:53 +010021 Memory32Fixed(ReadWrite, 0xfed20000, 0x00020000) // Misc ICH
22 Memory32Fixed(ReadWrite, 0xfed40000, 0x00005000) // Misc ICH
23 Memory32Fixed(ReadWrite, 0xfed45000, 0x0004b000) // Misc ICH
24 })
25
26 // Current Resource Settings
27 Method (_CRS, 0, Serialized)
28 {
Patrick Georgi2efc8802012-11-06 11:03:53 +010029 Return(PDRS)
30 }
31}
32
33// PCIe graphics port 0:1.0
34#include "peg.asl"
Matt DeVillierc6589ae2020-11-28 13:17:54 -060035
36// Integrated graphics 0:2.0
37#include <drivers/intel/gma/acpi/gfx.asl>