blob: 34e8ef046da9d5b34ef3e21715f2188e5b15811b [file] [log] [blame]
Bruce Griffith27ed80b2014-08-15 11:46:25 -06001/*
2 * This file is part of the coreboot project.
3 *
Bruce Griffith27ed80b2014-08-15 11:46:25 -06004 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
Bruce Griffith27ed80b2014-08-15 11:46:25 -060013 */
14
15/* Note: Only need HID on Primary Bus */
16External (TOM1)
17External (TOM2)
Nico Huber7176a542019-12-13 17:08:49 +010018Name(_HID, EISAID("PNP0A08")) /* PCI Express Root Bridge */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060019Name(_CID, EISAID("PNP0A03")) /* PCI Root Bridge */
Nico Huber7176a542019-12-13 17:08:49 +010020
Bruce Griffith27ed80b2014-08-15 11:46:25 -060021/* Describe the Northbridge devices */
22
23Method(_BBN, 0, NotSerialized) /* Bus number = 0 */
24{
25 Return(Zero)
26}
27
28Method(_STA, 0, NotSerialized)
29{
30 Return(0x0B) /* Status is visible */
31}
32
33Method(_PRT,0, NotSerialized)
34{
35 If(PMOD)
36 {
37 Return(APR0) /* APIC mode */
38 }
39 Return (PR0) /* PIC Mode */
40}
41
42Device(AMRT) {
43 Name(_ADR, 0x00000000)
44} /* end AMRT */
45
46/* Gpp 0 */
47Device(PBR4) {
48 Name(_ADR, 0x00020001)
49 Name(_PRW, Package() {0x18, 4})
50 Method(_PRT,0) {
Elyes HAOUASa8131602016-09-19 10:27:57 -060051 If(PMOD) { Return(APS4) } /* APIC mode */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060052 Return (PS4) /* PIC Mode */
53 } /* end _PRT */
54} /* end PBR4 */
55
56/* Gpp 1 */
57Device(PBR5) {
58 Name(_ADR, 0x00020002)
59 Name(_PRW, Package() {0x18, 4})
60 Method(_PRT,0) {
Elyes HAOUASa8131602016-09-19 10:27:57 -060061 If(PMOD) { Return(APS5) } /* APIC mode */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060062 Return (PS5) /* PIC Mode */
63 } /* end _PRT */
64} /* end PBR5 */
65
66/* Gpp 2 */
67Device(PBR6) {
68 Name(_ADR, 0x00020003)
69 Name(_PRW, Package() {0x18, 4})
70 Method(_PRT,0) {
Elyes HAOUASa8131602016-09-19 10:27:57 -060071 If(PMOD) { Return(APS6) } /* APIC mode */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060072 Return (PS6) /* PIC Mode */
73 } /* end _PRT */
74} /* end PBR6 */
75
76/* Gpp 3 */
77Device(PBR7) {
78 Name(_ADR, 0x00020004)
79 Name(_PRW, Package() {0x18, 4})
80 Method(_PRT,0) {
Elyes HAOUASa8131602016-09-19 10:27:57 -060081 If(PMOD) { Return(APS7) } /* APIC mode */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060082 Return (PS7) /* PIC Mode */
83 } /* end _PRT */
84} /* end PBR7 */
85
86/* Gpp 4 */
87Device(PBR8) {
88 Name(_ADR, 0x00020005)
89 Name(_PRW, Package() {0x18, 4})
90 Method(_PRT,0) {
Elyes HAOUASa8131602016-09-19 10:27:57 -060091 If(PMOD) { Return(APS8) } /* APIC mode */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060092 Return (PS8) /* PIC Mode */
93 } /* end _PRT */
94} /* end PBR8 */
Michał Żygowski09eb8d02020-02-07 18:39:24 +010095
96Device(K10M) {
97 Name (_ADR, 0x00180003)
Michał Żygowskib84c6162020-03-23 14:41:32 +010098 #include <soc/amd/common/acpi/thermal_zone.asl>
Michał Żygowski09eb8d02020-02-07 18:39:24 +010099}