Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 4 | * |
| 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 Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | /* Note: Only need HID on Primary Bus */ |
| 16 | External (TOM1) |
| 17 | External (TOM2) |
Nico Huber | 7176a54 | 2019-12-13 17:08:49 +0100 | [diff] [blame] | 18 | Name(_HID, EISAID("PNP0A08")) /* PCI Express Root Bridge */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 19 | Name(_CID, EISAID("PNP0A03")) /* PCI Root Bridge */ |
Nico Huber | 7176a54 | 2019-12-13 17:08:49 +0100 | [diff] [blame] | 20 | |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 21 | /* Describe the Northbridge devices */ |
| 22 | |
| 23 | Method(_BBN, 0, NotSerialized) /* Bus number = 0 */ |
| 24 | { |
| 25 | Return(Zero) |
| 26 | } |
| 27 | |
| 28 | Method(_STA, 0, NotSerialized) |
| 29 | { |
| 30 | Return(0x0B) /* Status is visible */ |
| 31 | } |
| 32 | |
| 33 | Method(_PRT,0, NotSerialized) |
| 34 | { |
| 35 | If(PMOD) |
| 36 | { |
| 37 | Return(APR0) /* APIC mode */ |
| 38 | } |
| 39 | Return (PR0) /* PIC Mode */ |
| 40 | } |
| 41 | |
| 42 | Device(AMRT) { |
| 43 | Name(_ADR, 0x00000000) |
| 44 | } /* end AMRT */ |
| 45 | |
| 46 | /* Gpp 0 */ |
| 47 | Device(PBR4) { |
| 48 | Name(_ADR, 0x00020001) |
| 49 | Name(_PRW, Package() {0x18, 4}) |
| 50 | Method(_PRT,0) { |
Elyes HAOUAS | a813160 | 2016-09-19 10:27:57 -0600 | [diff] [blame] | 51 | If(PMOD) { Return(APS4) } /* APIC mode */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 52 | Return (PS4) /* PIC Mode */ |
| 53 | } /* end _PRT */ |
| 54 | } /* end PBR4 */ |
| 55 | |
| 56 | /* Gpp 1 */ |
| 57 | Device(PBR5) { |
| 58 | Name(_ADR, 0x00020002) |
| 59 | Name(_PRW, Package() {0x18, 4}) |
| 60 | Method(_PRT,0) { |
Elyes HAOUAS | a813160 | 2016-09-19 10:27:57 -0600 | [diff] [blame] | 61 | If(PMOD) { Return(APS5) } /* APIC mode */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 62 | Return (PS5) /* PIC Mode */ |
| 63 | } /* end _PRT */ |
| 64 | } /* end PBR5 */ |
| 65 | |
| 66 | /* Gpp 2 */ |
| 67 | Device(PBR6) { |
| 68 | Name(_ADR, 0x00020003) |
| 69 | Name(_PRW, Package() {0x18, 4}) |
| 70 | Method(_PRT,0) { |
Elyes HAOUAS | a813160 | 2016-09-19 10:27:57 -0600 | [diff] [blame] | 71 | If(PMOD) { Return(APS6) } /* APIC mode */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 72 | Return (PS6) /* PIC Mode */ |
| 73 | } /* end _PRT */ |
| 74 | } /* end PBR6 */ |
| 75 | |
| 76 | /* Gpp 3 */ |
| 77 | Device(PBR7) { |
| 78 | Name(_ADR, 0x00020004) |
| 79 | Name(_PRW, Package() {0x18, 4}) |
| 80 | Method(_PRT,0) { |
Elyes HAOUAS | a813160 | 2016-09-19 10:27:57 -0600 | [diff] [blame] | 81 | If(PMOD) { Return(APS7) } /* APIC mode */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 82 | Return (PS7) /* PIC Mode */ |
| 83 | } /* end _PRT */ |
| 84 | } /* end PBR7 */ |
| 85 | |
| 86 | /* Gpp 4 */ |
| 87 | Device(PBR8) { |
| 88 | Name(_ADR, 0x00020005) |
| 89 | Name(_PRW, Package() {0x18, 4}) |
| 90 | Method(_PRT,0) { |
Elyes HAOUAS | a813160 | 2016-09-19 10:27:57 -0600 | [diff] [blame] | 91 | If(PMOD) { Return(APS8) } /* APIC mode */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 92 | Return (PS8) /* PIC Mode */ |
| 93 | } /* end _PRT */ |
| 94 | } /* end PBR8 */ |
Michał Żygowski | 09eb8d0 | 2020-02-07 18:39:24 +0100 | [diff] [blame] | 95 | |
| 96 | Device(K10M) { |
| 97 | Name (_ADR, 0x00180003) |
Michał Żygowski | b84c616 | 2020-03-23 14:41:32 +0100 | [diff] [blame^] | 98 | #include <soc/amd/common/acpi/thermal_zone.asl> |
Michał Żygowski | 09eb8d0 | 2020-02-07 18:39:24 +0100 | [diff] [blame] | 99 | } |