Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2007-2009 coresystems GmbH |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation; version 2 of |
| 9 | * the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #include "hostbridge.asl" |
| 18 | #include "../gm45.h" |
Elyes HAOUAS | 4ec67fc | 2019-10-30 12:39:17 +0100 | [diff] [blame^] | 19 | #include <southbridge/intel/common/rcba.h> |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 20 | |
| 21 | /* PCI Device Resource Consumption */ |
| 22 | Device (PDRC) |
| 23 | { |
| 24 | Name (_HID, EISAID("PNP0C02")) |
| 25 | Name (_UID, 1) |
| 26 | |
| 27 | // This does not seem to work correctly yet - set values statically for |
| 28 | // now. |
| 29 | |
| 30 | //Name (PDRS, ResourceTemplate() { |
| 31 | // Memory32Fixed(ReadWrite, 0x00000000, 0x00004000, RCRB) // RCBA |
| 32 | // Memory32Fixed(ReadWrite, 0x00000000, 0x00004000, MCHB) // MCHBAR |
| 33 | // Memory32Fixed(ReadWrite, 0x00000000, 0x00001000, DMIB) // DMIBAR |
| 34 | // Memory32Fixed(ReadWrite, 0x00000000, 0x00001000, EGPB) // EPBAR |
| 35 | // Memory32Fixed(ReadWrite, 0x00000000, 0x00000000, PCIE) // PCIE BAR |
| 36 | // Memory32Fixed(ReadWrite, 0xfed20000, 0x00070000, ICHB) // Misc ICH |
| 37 | //}) |
| 38 | |
| 39 | Name (PDRS, ResourceTemplate() { |
Elyes HAOUAS | 4ec67fc | 2019-10-30 12:39:17 +0100 | [diff] [blame^] | 40 | Memory32Fixed(ReadWrite, DEFAULT_RCBA, 0x00004000) |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 41 | Memory32Fixed(ReadWrite, DEFAULT_MCHBAR, 0x00004000) |
| 42 | Memory32Fixed(ReadWrite, DEFAULT_DMIBAR, 0x00001000) |
| 43 | Memory32Fixed(ReadWrite, DEFAULT_EPBAR, 0x00001000) |
Kyösti Mälkki | 503d324 | 2019-03-05 07:54:28 +0200 | [diff] [blame] | 44 | Memory32Fixed(ReadWrite, CONFIG_MMCONF_BASE_ADDRESS, 0x04000000) |
Patrick Georgi | 2efc880 | 2012-11-06 11:03:53 +0100 | [diff] [blame] | 45 | Memory32Fixed(ReadWrite, 0xfed20000, 0x00020000) // Misc ICH |
| 46 | Memory32Fixed(ReadWrite, 0xfed40000, 0x00005000) // Misc ICH |
| 47 | Memory32Fixed(ReadWrite, 0xfed45000, 0x0004b000) // Misc ICH |
| 48 | }) |
| 49 | |
| 50 | // Current Resource Settings |
| 51 | Method (_CRS, 0, Serialized) |
| 52 | { |
| 53 | //CreateDwordField(PDRS, ^RCRB._BAS, RBR0) |
| 54 | //ShiftLeft(\_SB.PCI0.LPCB.RCBA, 14, RBR0) |
| 55 | |
| 56 | //CreateDwordField(PDRS, ^MCHB._BAS, MBR0) |
| 57 | //ShiftLeft(\_SB.PCI0.MCHC.MHBR, 14, MBR0) |
| 58 | |
| 59 | //CreateDwordField(PDRS, ^DMIB._BAS, DBR0) |
| 60 | //ShiftLeft(\_SB.PCI0.MCHC.DMBR, 12, DBR0) |
| 61 | |
| 62 | //CreateDwordField(PDRS, ^EGPB._BAS, EBR0) |
| 63 | //ShiftLeft(\_SB.PCI0.MCHC.EPBR, 12, EBR0) |
| 64 | |
| 65 | //CreateDwordField(PDRS, ^PCIE._BAS, PBR0) |
| 66 | //ShiftLeft(\_SB.PCI0.MCHC.PXBR, 26, PBR0) |
| 67 | |
| 68 | //CreateDwordField(PDRS, ^PCIE._LEN, PSZ0) |
| 69 | //ShiftLeft(0x10000000, \_SB.PCI0.MCHC.PXSZ, PSZ0) |
| 70 | |
| 71 | Return(PDRS) |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | // PCIe graphics port 0:1.0 |
| 76 | #include "peg.asl" |
| 77 | |
| 78 | // Integrated graphics 0:2.0 |
Nico Huber | 62047d1 | 2015-08-27 15:07:03 +0200 | [diff] [blame] | 79 | #include <drivers/intel/gma/acpi/non-pch.asl> |