blob: 3076a68a9a3e6e15e6df52efb0ef31063ae275b4 [file] [log] [blame]
Stefan Reinauer00636b02012-04-04 00:08:51 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2009 coresystems GmbH
Patrick Rudolph0b643d22017-07-05 20:07:06 +02005 * Copyright (C) 2017-2018 Patrick Rudolph <siro@das-labor.org>
Stefan Reinauer00636b02012-04-04 00:08:51 +02006 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; version 2 of
10 * the License.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
Stefan Reinauer00636b02012-04-04 00:08:51 +020016 */
17
Stefan Reinauer00636b02012-04-04 00:08:51 +020018#include "../sandybridge.h"
Duncan Laurie55864ef2012-07-16 12:27:42 -070019#include "hostbridge.asl"
Patrick Rudolph0b643d22017-07-05 20:07:06 +020020#include "peg.asl"
Stefan Reinauer00636b02012-04-04 00:08:51 +020021
22/* PCI Device Resource Consumption */
23Device (PDRC)
24{
25 Name (_HID, EISAID("PNP0C02"))
26 Name (_UID, 1)
27
28 Name (PDRS, ResourceTemplate() {
29 Memory32Fixed(ReadWrite, 0xfed1c000, 0x00004000) // RCBA
Paul Menzel20f83d52014-02-11 10:38:27 +010030 Memory32Fixed(ReadWrite, DEFAULT_MCHBAR, 0x00008000)
Stefan Reinauer00636b02012-04-04 00:08:51 +020031 Memory32Fixed(ReadWrite, DEFAULT_DMIBAR, 0x00001000)
32 Memory32Fixed(ReadWrite, DEFAULT_EPBAR, 0x00001000)
33 Memory32Fixed(ReadWrite, DEFAULT_PCIEXBAR, 0x04000000)
34 Memory32Fixed(ReadWrite, 0xfed20000, 0x00020000) // Misc ICH
35 Memory32Fixed(ReadWrite, 0xfed40000, 0x00005000) // Misc ICH
36 Memory32Fixed(ReadWrite, 0xfed45000, 0x0004b000) // Misc ICH
37
Martin Roth33232602017-06-24 14:48:50 -060038#if IS_ENABLED(CONFIG_CHROMEOS_RAMOOPS)
Stefan Reinauer00636b02012-04-04 00:08:51 +020039 Memory32Fixed(ReadWrite, CONFIG_CHROMEOS_RAMOOPS_RAM_START,
40 CONFIG_CHROMEOS_RAMOOPS_RAM_SIZE)
41#endif
42
43 /* Required for SandyBridge sighting 3715511 */
44 Memory32Fixed(ReadWrite, 0x20000000, 0x00200000)
45 Memory32Fixed(ReadWrite, 0x40000000, 0x00200000)
46 })
47
48 // Current Resource Settings
49 Method (_CRS, 0, Serialized)
50 {
51 Return(PDRS)
52 }
53}
54
55// Integrated graphics 0:2.0
Nico Huber62047d12015-08-27 15:07:03 +020056#include <drivers/intel/gma/acpi/pch.asl>