blob: 47a6931c679ea1fbb4e02ed3dfb7427070d49f05 [file] [log] [blame]
Stefan Reinauercc46e732009-03-13 00:44:09 +00001/*
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.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
19 * MA 02110-1301 USA
20 */
21
Patrick Georgi334328a2012-02-16 19:01:22 +010022#include "hostbridge.asl"
23#include "../i945.h"
Stefan Reinauercc46e732009-03-13 00:44:09 +000024
25/* PCI Device Resource Consumption */
26Device (PDRC)
27{
28 Name (_HID, EISAID("PNP0C02"))
29 Name (_UID, 1)
Stefan Reinauer71a3d962009-07-21 21:44:24 +000030
31 // This does not seem to work correctly yet - set values statically for
32 // now.
Stefan Reinauer109ab312009-08-12 16:08:05 +000033
Stefan Reinauer71a3d962009-07-21 21:44:24 +000034 //Name (PDRS, ResourceTemplate() {
35 // Memory32Fixed(ReadWrite, 0x00000000, 0x00004000, RCRB) // RCBA
36 // Memory32Fixed(ReadWrite, 0x00000000, 0x00004000, MCHB) // MCHBAR
37 // Memory32Fixed(ReadWrite, 0x00000000, 0x00001000, DMIB) // DMIBAR
38 // Memory32Fixed(ReadWrite, 0x00000000, 0x00001000, EGPB) // EPBAR
39 // Memory32Fixed(ReadWrite, 0x00000000, 0x00000000, PCIE) // PCIE BAR
40 // Memory32Fixed(ReadWrite, 0xfed20000, 0x00070000, ICHB) // Misc ICH
41 //})
42
Stefan Reinauercc46e732009-03-13 00:44:09 +000043 Name (PDRS, ResourceTemplate() {
Stefan Reinauer71a3d962009-07-21 21:44:24 +000044 Memory32Fixed(ReadWrite, 0xfed1c000, 0x00004000) // RCBA
Stefan Reinaueraca6ec62009-10-26 17:12:21 +000045 Memory32Fixed(ReadWrite, DEFAULT_MCHBAR, 0x00004000)
46 Memory32Fixed(ReadWrite, DEFAULT_DMIBAR, 0x00001000)
47 Memory32Fixed(ReadWrite, DEFAULT_EPBAR, 0x00001000)
48 Memory32Fixed(ReadWrite, DEFAULT_PCIEXBAR, 0x04000000)
Stefan Reinauer71a3d962009-07-21 21:44:24 +000049 Memory32Fixed(ReadWrite, 0xfed20000, 0x00020000) // Misc ICH
50 Memory32Fixed(ReadWrite, 0xfed40000, 0x00005000) // Misc ICH
51 Memory32Fixed(ReadWrite, 0xfed45000, 0x0004b000) // Misc ICH
Stefan Reinauercc46e732009-03-13 00:44:09 +000052 })
53
54 // Current Resource Settings
55 Method (_CRS, 0, Serialized)
56 {
Stefan Reinauer71a3d962009-07-21 21:44:24 +000057 //CreateDwordField(PDRS, ^RCRB._BAS, RBR0)
58 //ShiftLeft(\_SB.PCI0.LPCB.RCBA, 14, RBR0)
Stefan Reinauercc46e732009-03-13 00:44:09 +000059
Stefan Reinauer71a3d962009-07-21 21:44:24 +000060 //CreateDwordField(PDRS, ^MCHB._BAS, MBR0)
61 //ShiftLeft(\_SB.PCI0.MCHC.MHBR, 14, MBR0)
Stefan Reinauercc46e732009-03-13 00:44:09 +000062
Stefan Reinauer71a3d962009-07-21 21:44:24 +000063 //CreateDwordField(PDRS, ^DMIB._BAS, DBR0)
64 //ShiftLeft(\_SB.PCI0.MCHC.DMBR, 12, DBR0)
Stefan Reinauercc46e732009-03-13 00:44:09 +000065
Stefan Reinauer71a3d962009-07-21 21:44:24 +000066 //CreateDwordField(PDRS, ^EGPB._BAS, EBR0)
67 //ShiftLeft(\_SB.PCI0.MCHC.EPBR, 12, EBR0)
Stefan Reinauercc46e732009-03-13 00:44:09 +000068
Stefan Reinauer71a3d962009-07-21 21:44:24 +000069 //CreateDwordField(PDRS, ^PCIE._BAS, PBR0)
70 //ShiftLeft(\_SB.PCI0.MCHC.PXBR, 26, PBR0)
Stefan Reinauercc46e732009-03-13 00:44:09 +000071
Stefan Reinauer71a3d962009-07-21 21:44:24 +000072 //CreateDwordField(PDRS, ^PCIE._LEN, PSZ0)
73 //ShiftLeft(0x10000000, \_SB.PCI0.MCHC.PXSZ, PSZ0)
Stefan Reinauercc46e732009-03-13 00:44:09 +000074
75 Return(PDRS)
76 }
77}
78
79// PCIe graphics port 0:1.0
Patrick Georgi334328a2012-02-16 19:01:22 +010080#include "peg.asl"
Stefan Reinauercc46e732009-03-13 00:44:09 +000081
82// Integrated graphics 0:2.0
Patrick Georgi334328a2012-02-16 19:01:22 +010083#include "igd.asl"
Stefan Reinauercc46e732009-03-13 00:44:09 +000084
85Scope (\)
86{
87 // backlight control, display switching, lid
Stefan Reinaueraca6ec62009-10-26 17:12:21 +000088 #include "acpi/video.asl"
Stefan Reinauercc46e732009-03-13 00:44:09 +000089}