Angel Pons | 4b42983 | 2020-04-02 23:48:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -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 */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 7 | Name(_CID, EISAID("PNP0A03")) /* PCI Root Bridge */ |
Nico Huber | 7176a54 | 2019-12-13 17:08:49 +0100 | [diff] [blame] | 8 | |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 9 | /* Describe the Northbridge devices */ |
| 10 | |
| 11 | Method(_BBN, 0, NotSerialized) /* Bus number = 0 */ |
| 12 | { |
| 13 | Return(Zero) |
| 14 | } |
| 15 | |
| 16 | Method(_STA, 0, NotSerialized) |
| 17 | { |
| 18 | Return(0x0B) /* Status is visible */ |
| 19 | } |
| 20 | |
| 21 | Method(_PRT,0, NotSerialized) |
| 22 | { |
Kyösti Mälkki | 3f24670 | 2021-01-25 16:48:51 +0200 | [diff] [blame^] | 23 | If(PICM) |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 24 | { |
| 25 | Return(APR0) /* APIC mode */ |
| 26 | } |
| 27 | Return (PR0) /* PIC Mode */ |
| 28 | } |
| 29 | |
| 30 | Device(AMRT) { |
| 31 | Name(_ADR, 0x00000000) |
| 32 | } /* end AMRT */ |
| 33 | |
| 34 | /* Gpp 0 */ |
| 35 | Device(PBR4) { |
| 36 | Name(_ADR, 0x00020001) |
| 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(APS4) } /* APIC mode */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 40 | Return (PS4) /* PIC Mode */ |
| 41 | } /* end _PRT */ |
| 42 | } /* end PBR4 */ |
| 43 | |
| 44 | /* Gpp 1 */ |
| 45 | Device(PBR5) { |
| 46 | Name(_ADR, 0x00020002) |
| 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(APS5) } /* APIC mode */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 50 | Return (PS5) /* PIC Mode */ |
| 51 | } /* end _PRT */ |
| 52 | } /* end PBR5 */ |
| 53 | |
| 54 | /* Gpp 2 */ |
| 55 | Device(PBR6) { |
| 56 | Name(_ADR, 0x00020003) |
| 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(APS6) } /* APIC mode */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 60 | Return (PS6) /* PIC Mode */ |
| 61 | } /* end _PRT */ |
| 62 | } /* end PBR6 */ |
| 63 | |
| 64 | /* Gpp 3 */ |
| 65 | Device(PBR7) { |
| 66 | Name(_ADR, 0x00020004) |
| 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(APS7) } /* APIC mode */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 70 | Return (PS7) /* PIC Mode */ |
| 71 | } /* end _PRT */ |
| 72 | } /* end PBR7 */ |
| 73 | |
| 74 | /* Gpp 4 */ |
| 75 | Device(PBR8) { |
| 76 | Name(_ADR, 0x00020005) |
| 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(APS8) } /* APIC mode */ |
Bruce Griffith | 27ed80b | 2014-08-15 11:46:25 -0600 | [diff] [blame] | 80 | Return (PS8) /* PIC Mode */ |
| 81 | } /* end _PRT */ |
| 82 | } /* end PBR8 */ |
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 | } |