Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -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. |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -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("PNP0A03")) /* PCI Express Root Bridge */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 19 | |
| 20 | /* Describe the Northbridge devices */ |
| 21 | |
| 22 | Method (_BBN, 0, NotSerialized) |
| 23 | { |
| 24 | Return (Zero) |
| 25 | } |
| 26 | |
| 27 | Method (_STA, 0, NotSerialized) |
| 28 | { |
| 29 | Return (0x0B) |
| 30 | } |
| 31 | |
| 32 | Method (_PRT, 0, NotSerialized) |
| 33 | { |
| 34 | If (PMOD) |
| 35 | { |
| 36 | Return (APR0) |
| 37 | } |
| 38 | |
| 39 | Return (PR0) |
| 40 | } |
| 41 | |
| 42 | Device(AMRT) { |
| 43 | Name(_ADR, 0x00000000) |
| 44 | } /* end AMRT */ |
| 45 | |
Kimarie Hoot | 0cc33da | 2013-07-20 14:28:10 -0600 | [diff] [blame] | 46 | /* Dev2 is also an external GFX bridge */ |
| 47 | Device(PBR2) { |
| 48 | Name(_ADR, 0x00020000) |
| 49 | Name(_PRW, Package() {0x18, 4}) |
| 50 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 51 | If(PMOD) { Return(APS2) } /* APIC mode */ |
Kimarie Hoot | 0cc33da | 2013-07-20 14:28:10 -0600 | [diff] [blame] | 52 | Return (PS2) /* PIC Mode */ |
| 53 | } /* end _PRT */ |
| 54 | } /* end PBR2 */ |
| 55 | |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 56 | /* Dev4 GPP0 Root Port Bridge */ |
| 57 | Device(PBR4) { |
| 58 | Name(_ADR, 0x00040000) |
| 59 | Name(_PRW, Package() {0x18, 4}) |
| 60 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 61 | If(PMOD) { Return(APS4) } /* APIC mode */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 62 | Return (PS4) /* PIC Mode */ |
| 63 | } /* end _PRT */ |
| 64 | } /* end PBR4 */ |
| 65 | |
| 66 | /* Dev5 GPP1 Root Port Bridge */ |
| 67 | Device(PBR5) { |
| 68 | Name(_ADR, 0x00050000) |
| 69 | Name(_PRW, Package() {0x18, 4}) |
| 70 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 71 | If(PMOD) { Return(APS5) } /* APIC mode */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 72 | Return (PS5) /* PIC Mode */ |
| 73 | } /* end _PRT */ |
| 74 | } /* end PBR5 */ |
| 75 | |
| 76 | /* Dev6 GPP2 Root Port Bridge */ |
| 77 | Device(PBR6) { |
| 78 | Name(_ADR, 0x00060000) |
| 79 | Name(_PRW, Package() {0x18, 4}) |
| 80 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 81 | If(PMOD) { Return(APS6) } /* APIC mode */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 82 | Return (PS6) /* PIC Mode */ |
| 83 | } /* end _PRT */ |
| 84 | } /* end PBR6 */ |
| 85 | |
| 86 | /* The onboard EtherNet chip */ |
| 87 | Device(PBR7) { |
| 88 | Name(_ADR, 0x00070000) |
| 89 | Name(_PRW, Package() {0x18, 4}) |
| 90 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 91 | If(PMOD) { Return(APS7) } /* APIC mode */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 92 | Return (PS7) /* PIC Mode */ |
| 93 | } /* end _PRT */ |
| 94 | } /* end PBR7 */ |
Michał Żygowski | 09eb8d0 | 2020-02-07 18:39:24 +0100 | [diff] [blame^] | 95 | |
| 96 | Device(K10M) { |
| 97 | Name (_ADR, 0x00180003) |
| 98 | #include <northbridge/amd/agesa/family14/acpi/thermal_mixin.asl> |
| 99 | } |