Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -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. |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -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 */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 19 | Name(_CID, EISAID("PNP0A03")) /* PCI Root Bridge */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 20 | |
| 21 | /* Describe the Northbridge devices */ |
| 22 | Device(AMRT) { |
| 23 | Name(_ADR, 0x00000000) |
| 24 | } /* end AMRT */ |
| 25 | |
| 26 | /* The internal GFX bridge */ |
| 27 | Device(AGPB) { |
| 28 | Name(_ADR, 0x00010000) |
| 29 | Name(_PRW, Package() {0x18, 4}) |
| 30 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 31 | If(PMOD) { Return(APR1) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 32 | Return (PR1) /* PIC Mode */ |
| 33 | } |
| 34 | } /* end AGPB */ |
| 35 | |
| 36 | /* The internal GFX bridge */ |
| 37 | Device(HDMI) { |
| 38 | Name(_ADR, 0x00010001) |
| 39 | Name(_PRW, Package() {0x18, 4}) |
| 40 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 41 | If(PMOD) { Return(APR1) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 42 | Return (PR1) /* PIC Mode */ |
| 43 | } |
| 44 | } /* end HDMI */ |
| 45 | |
| 46 | /* Dev 2 & 3 are external GFX bridges, not used in Family14 */ |
| 47 | |
| 48 | /* Dev4 GPP0 Root Port Bridge */ |
| 49 | Device(PBR4) { |
| 50 | Name(_ADR, 0x00040000) |
| 51 | Name(_PRW, Package() {0x18, 4}) |
| 52 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 53 | If(PMOD) { Return(APS4) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 54 | Return (PS4) /* PIC Mode */ |
| 55 | } /* end _PRT */ |
| 56 | } /* end PBR4 */ |
| 57 | |
| 58 | /* Dev5 GPP1 Root Port Bridge */ |
| 59 | Device(PBR5) { |
| 60 | Name(_ADR, 0x00050000) |
| 61 | Name(_PRW, Package() {0x18, 4}) |
| 62 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 63 | If(PMOD) { Return(APS5) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 64 | Return (PS5) /* PIC Mode */ |
| 65 | } /* end _PRT */ |
| 66 | } /* end PBR5 */ |
| 67 | |
| 68 | /* Dev6 GPP2 Root Port Bridge */ |
| 69 | Device(PBR6) { |
| 70 | Name(_ADR, 0x00060000) |
| 71 | Name(_PRW, Package() {0x18, 4}) |
| 72 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 73 | If(PMOD) { Return(APS6) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 74 | Return (PS6) /* PIC Mode */ |
| 75 | } /* end _PRT */ |
| 76 | } /* end PBR6 */ |
| 77 | |
| 78 | /* The onboard EtherNet chip */ |
| 79 | Device(PBR7) { |
| 80 | Name(_ADR, 0x00070000) |
| 81 | Name(_PRW, Package() {0x18, 4}) |
| 82 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 83 | If(PMOD) { Return(APS7) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 84 | Return (PS7) /* PIC Mode */ |
| 85 | } /* end _PRT */ |
| 86 | } /* end PBR7 */ |
| 87 | |
| 88 | Device(PE20) { |
| 89 | Name(_ADR, 0x00150000) |
| 90 | Name(_PRW, Package() {0x18, 4}) |
| 91 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 92 | If(PMOD) { Return(APE0) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 93 | Return (PE0) /* PIC Mode */ |
| 94 | } /* end _PRT */ |
| 95 | } /* end PE20 */ |
| 96 | |
| 97 | Device(PE21) { |
| 98 | Name(_ADR, 0x00150001) |
| 99 | Name(_PRW, Package() {0x18, 4}) |
| 100 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 101 | If(PMOD) { Return(APE1) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 102 | Return (PE1) /* PIC Mode */ |
| 103 | } /* end _PRT */ |
| 104 | } /* end PE21 */ |
| 105 | |
| 106 | Device(PE22) { |
| 107 | Name(_ADR, 0x00150002) |
| 108 | Name(_PRW, Package() {0x18, 4}) |
| 109 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 110 | If(PMOD) { Return(APE2) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 111 | Return (APE2) /* PIC Mode */ |
| 112 | } /* end _PRT */ |
| 113 | } /* end PE22 */ |
| 114 | |
| 115 | Device(PE23) { |
| 116 | Name(_ADR, 0x00150003) |
| 117 | Name(_PRW, Package() {0x18, 4}) |
| 118 | Method(_PRT,0) { |
Elyes HAOUAS | 1d8daa6 | 2016-09-18 08:50:54 +0200 | [diff] [blame] | 119 | If(PMOD) { Return(APE3) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 120 | Return (PE3) /* PIC Mode */ |
| 121 | } /* end _PRT */ |
| 122 | } /* end PE23 */ |
Tobias Diedrich | 6a4d682 | 2015-06-21 18:25:38 +0200 | [diff] [blame] | 123 | |
| 124 | /* Northbridge function 3 */ |
| 125 | Device(NBF3) { |
Nico Huber | 7176a54 | 2019-12-13 17:08:49 +0100 | [diff] [blame] | 126 | Name(_ADR, 0x00180003) |
Tobias Diedrich | 6a4d682 | 2015-06-21 18:25:38 +0200 | [diff] [blame] | 127 | /* k10temp thermal zone */ |
Michał Żygowski | b84c616 | 2020-03-23 14:41:32 +0100 | [diff] [blame^] | 128 | #include <soc/amd/common/acpi/thermal_zone.asl> |
Tobias Diedrich | 6a4d682 | 2015-06-21 18:25:38 +0200 | [diff] [blame] | 129 | } /* end NBF3 */ |