Angel Pons | 4b42983 | 2020-04-02 23:48:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 2 | |
| 3 | /* Note: Only need HID on Primary Bus */ |
| 4 | External (TOM1) |
| 5 | External (TOM2) |
Nico Huber | 7176a54 | 2019-12-13 17:08:49 +0100 | [diff] [blame] | 6 | Name(_HID, EISAID("PNP0A08")) /* PCI Express Root Bridge */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 7 | Name(_CID, EISAID("PNP0A03")) /* PCI Root Bridge */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 8 | |
| 9 | /* Describe the Northbridge devices */ |
| 10 | Device(AMRT) { |
| 11 | Name(_ADR, 0x00000000) |
| 12 | } /* end AMRT */ |
| 13 | |
| 14 | /* The internal GFX bridge */ |
| 15 | Device(AGPB) { |
| 16 | Name(_ADR, 0x00010000) |
| 17 | Name(_PRW, Package() {0x18, 4}) |
| 18 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 19 | If(PICM) { Return(APR1) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 20 | Return (PR1) /* PIC Mode */ |
| 21 | } |
| 22 | } /* end AGPB */ |
| 23 | |
| 24 | /* The internal GFX bridge */ |
| 25 | Device(HDMI) { |
| 26 | Name(_ADR, 0x00010001) |
| 27 | Name(_PRW, Package() {0x18, 4}) |
| 28 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 29 | If(PICM) { Return(APR1) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 30 | Return (PR1) /* PIC Mode */ |
| 31 | } |
| 32 | } /* end HDMI */ |
| 33 | |
| 34 | /* Dev 2 & 3 are external GFX bridges, not used in Family14 */ |
| 35 | |
| 36 | /* Dev4 GPP0 Root Port Bridge */ |
| 37 | Device(PBR4) { |
| 38 | Name(_ADR, 0x00040000) |
| 39 | Name(_PRW, Package() {0x18, 4}) |
| 40 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 41 | If(PICM) { Return(APS4) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 42 | Return (PS4) /* PIC Mode */ |
| 43 | } /* end _PRT */ |
| 44 | } /* end PBR4 */ |
| 45 | |
| 46 | /* Dev5 GPP1 Root Port Bridge */ |
| 47 | Device(PBR5) { |
| 48 | Name(_ADR, 0x00050000) |
| 49 | Name(_PRW, Package() {0x18, 4}) |
| 50 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 51 | If(PICM) { Return(APS5) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 52 | Return (PS5) /* PIC Mode */ |
| 53 | } /* end _PRT */ |
| 54 | } /* end PBR5 */ |
| 55 | |
| 56 | /* Dev6 GPP2 Root Port Bridge */ |
| 57 | Device(PBR6) { |
| 58 | Name(_ADR, 0x00060000) |
| 59 | Name(_PRW, Package() {0x18, 4}) |
| 60 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 61 | If(PICM) { Return(APS6) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 62 | Return (PS6) /* PIC Mode */ |
| 63 | } /* end _PRT */ |
| 64 | } /* end PBR6 */ |
| 65 | |
| 66 | /* The onboard EtherNet chip */ |
| 67 | Device(PBR7) { |
| 68 | Name(_ADR, 0x00070000) |
| 69 | Name(_PRW, Package() {0x18, 4}) |
| 70 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 71 | If(PICM) { Return(APS7) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 72 | Return (PS7) /* PIC Mode */ |
| 73 | } /* end _PRT */ |
| 74 | } /* end PBR7 */ |
| 75 | |
| 76 | Device(PE20) { |
| 77 | Name(_ADR, 0x00150000) |
| 78 | Name(_PRW, Package() {0x18, 4}) |
| 79 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 80 | If(PICM) { Return(APE0) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 81 | Return (PE0) /* PIC Mode */ |
| 82 | } /* end _PRT */ |
| 83 | } /* end PE20 */ |
| 84 | |
| 85 | Device(PE21) { |
| 86 | Name(_ADR, 0x00150001) |
| 87 | Name(_PRW, Package() {0x18, 4}) |
| 88 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 89 | If(PICM) { Return(APE1) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 90 | Return (PE1) /* PIC Mode */ |
| 91 | } /* end _PRT */ |
| 92 | } /* end PE21 */ |
| 93 | |
| 94 | Device(PE22) { |
| 95 | Name(_ADR, 0x00150002) |
| 96 | Name(_PRW, Package() {0x18, 4}) |
| 97 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 98 | If(PICM) { Return(APE2) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 99 | Return (APE2) /* PIC Mode */ |
| 100 | } /* end _PRT */ |
| 101 | } /* end PE22 */ |
| 102 | |
| 103 | Device(PE23) { |
| 104 | Name(_ADR, 0x00150003) |
| 105 | Name(_PRW, Package() {0x18, 4}) |
| 106 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 107 | If(PICM) { Return(APE3) } /* APIC mode */ |
Mike Loptien | 573a1d6 | 2013-03-18 11:19:26 -0600 | [diff] [blame] | 108 | Return (PE3) /* PIC Mode */ |
| 109 | } /* end _PRT */ |
| 110 | } /* end PE23 */ |
Tobias Diedrich | 6a4d682 | 2015-06-21 18:25:38 +0200 | [diff] [blame] | 111 | |
| 112 | /* Northbridge function 3 */ |
| 113 | Device(NBF3) { |
Nico Huber | 7176a54 | 2019-12-13 17:08:49 +0100 | [diff] [blame] | 114 | Name(_ADR, 0x00180003) |
Tobias Diedrich | 6a4d682 | 2015-06-21 18:25:38 +0200 | [diff] [blame] | 115 | /* k10temp thermal zone */ |
Michał Żygowski | b84c616 | 2020-03-23 14:41:32 +0100 | [diff] [blame] | 116 | #include <soc/amd/common/acpi/thermal_zone.asl> |
Tobias Diedrich | 6a4d682 | 2015-06-21 18:25:38 +0200 | [diff] [blame] | 117 | } /* end NBF3 */ |