Angel Pons | 4b42983 | 2020-04-02 23:48:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -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("PNP0A03")) /* PCI Express Root Bridge */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 7 | |
| 8 | /* Describe the Northbridge devices */ |
| 9 | |
| 10 | Method (_BBN, 0, NotSerialized) |
| 11 | { |
| 12 | Return (Zero) |
| 13 | } |
| 14 | |
| 15 | Method (_STA, 0, NotSerialized) |
| 16 | { |
| 17 | Return (0x0B) |
| 18 | } |
| 19 | |
| 20 | Method (_PRT, 0, NotSerialized) |
| 21 | { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 22 | If (PICM) |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 23 | { |
| 24 | Return (APR0) |
| 25 | } |
| 26 | |
| 27 | Return (PR0) |
| 28 | } |
| 29 | |
| 30 | Device(AMRT) { |
| 31 | Name(_ADR, 0x00000000) |
| 32 | } /* end AMRT */ |
| 33 | |
Kimarie Hoot | 0cc33da | 2013-07-20 14:28:10 -0600 | [diff] [blame] | 34 | /* Dev2 is also an external GFX bridge */ |
| 35 | Device(PBR2) { |
| 36 | Name(_ADR, 0x00020000) |
| 37 | Name(_PRW, Package() {0x18, 4}) |
| 38 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 39 | If(PICM) { Return(APS2) } /* APIC mode */ |
Kimarie Hoot | 0cc33da | 2013-07-20 14:28:10 -0600 | [diff] [blame] | 40 | Return (PS2) /* PIC Mode */ |
| 41 | } /* end _PRT */ |
| 42 | } /* end PBR2 */ |
| 43 | |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 44 | /* Dev4 GPP0 Root Port Bridge */ |
| 45 | Device(PBR4) { |
| 46 | Name(_ADR, 0x00040000) |
| 47 | Name(_PRW, Package() {0x18, 4}) |
| 48 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 49 | If(PICM) { Return(APS4) } /* APIC mode */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 50 | Return (PS4) /* PIC Mode */ |
| 51 | } /* end _PRT */ |
| 52 | } /* end PBR4 */ |
| 53 | |
| 54 | /* Dev5 GPP1 Root Port Bridge */ |
| 55 | Device(PBR5) { |
| 56 | Name(_ADR, 0x00050000) |
| 57 | Name(_PRW, Package() {0x18, 4}) |
| 58 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 59 | If(PICM) { Return(APS5) } /* APIC mode */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 60 | Return (PS5) /* PIC Mode */ |
| 61 | } /* end _PRT */ |
| 62 | } /* end PBR5 */ |
| 63 | |
| 64 | /* Dev6 GPP2 Root Port Bridge */ |
| 65 | Device(PBR6) { |
| 66 | Name(_ADR, 0x00060000) |
| 67 | Name(_PRW, Package() {0x18, 4}) |
| 68 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 69 | If(PICM) { Return(APS6) } /* APIC mode */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 70 | Return (PS6) /* PIC Mode */ |
| 71 | } /* end _PRT */ |
| 72 | } /* end PBR6 */ |
| 73 | |
| 74 | /* The onboard EtherNet chip */ |
| 75 | Device(PBR7) { |
| 76 | Name(_ADR, 0x00070000) |
| 77 | Name(_PRW, Package() {0x18, 4}) |
| 78 | Method(_PRT,0) { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 79 | If(PICM) { Return(APS7) } /* APIC mode */ |
Steve Goodrich | bf0988b | 2013-07-10 11:59:11 -0600 | [diff] [blame] | 80 | Return (PS7) /* PIC Mode */ |
| 81 | } /* end _PRT */ |
| 82 | } /* end PBR7 */ |
Michał Żygowski | 09eb8d0 | 2020-02-07 18:39:24 +0100 | [diff] [blame] | 83 | |
| 84 | Device(K10M) { |
| 85 | Name (_ADR, 0x00180003) |
Michał Żygowski | b84c616 | 2020-03-23 14:41:32 +0100 | [diff] [blame] | 86 | #include <soc/amd/common/acpi/thermal_zone.asl> |
Michał Żygowski | 09eb8d0 | 2020-02-07 18:39:24 +0100 | [diff] [blame] | 87 | } |