blob: d502af4137d2d8d70a50c4fb08a08c36c3dfe785 [file] [log] [blame]
Angel Pons4b429832020-04-02 23:48:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Bruce Griffith27ed80b2014-08-15 11:46:25 -06002
3/* Note: Only need HID on Primary Bus */
4External (TOM1)
5External (TOM2)
Nico Huber7176a542019-12-13 17:08:49 +01006Name(_HID, EISAID("PNP0A08")) /* PCI Express Root Bridge */
Bruce Griffith27ed80b2014-08-15 11:46:25 -06007Name(_CID, EISAID("PNP0A03")) /* PCI Root Bridge */
Nico Huber7176a542019-12-13 17:08:49 +01008
Bruce Griffith27ed80b2014-08-15 11:46:25 -06009/* Describe the Northbridge devices */
10
11Method(_BBN, 0, NotSerialized) /* Bus number = 0 */
12{
Felix Singer9df60d32022-12-26 09:43:07 +010013 Return(0)
Bruce Griffith27ed80b2014-08-15 11:46:25 -060014}
15
16Method(_STA, 0, NotSerialized)
17{
Felix Heldc6a9f502023-05-05 22:28:23 +020018 Return(0x0f) /* Status is visible */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060019}
20
21Method(_PRT,0, NotSerialized)
22{
Kyösti Mälkki3f246702021-01-25 16:48:51 +020023 If(PICM)
Bruce Griffith27ed80b2014-08-15 11:46:25 -060024 {
25 Return(APR0) /* APIC mode */
26 }
27 Return (PR0) /* PIC Mode */
28}
29
30Device(AMRT) {
31 Name(_ADR, 0x00000000)
32} /* end AMRT */
33
34/* Gpp 0 */
35Device(PBR4) {
36 Name(_ADR, 0x00020001)
37 Name(_PRW, Package() {0x18, 4})
38 Method(_PRT,0) {
Kyösti Mälkki3f246702021-01-25 16:48:51 +020039 If(PICM) { Return(APS4) } /* APIC mode */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060040 Return (PS4) /* PIC Mode */
41 } /* end _PRT */
42} /* end PBR4 */
43
44/* Gpp 1 */
45Device(PBR5) {
46 Name(_ADR, 0x00020002)
47 Name(_PRW, Package() {0x18, 4})
48 Method(_PRT,0) {
Kyösti Mälkki3f246702021-01-25 16:48:51 +020049 If(PICM) { Return(APS5) } /* APIC mode */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060050 Return (PS5) /* PIC Mode */
51 } /* end _PRT */
52} /* end PBR5 */
53
54/* Gpp 2 */
55Device(PBR6) {
56 Name(_ADR, 0x00020003)
57 Name(_PRW, Package() {0x18, 4})
58 Method(_PRT,0) {
Kyösti Mälkki3f246702021-01-25 16:48:51 +020059 If(PICM) { Return(APS6) } /* APIC mode */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060060 Return (PS6) /* PIC Mode */
61 } /* end _PRT */
62} /* end PBR6 */
63
64/* Gpp 3 */
65Device(PBR7) {
66 Name(_ADR, 0x00020004)
67 Name(_PRW, Package() {0x18, 4})
68 Method(_PRT,0) {
Kyösti Mälkki3f246702021-01-25 16:48:51 +020069 If(PICM) { Return(APS7) } /* APIC mode */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060070 Return (PS7) /* PIC Mode */
71 } /* end _PRT */
72} /* end PBR7 */
73
74/* Gpp 4 */
75Device(PBR8) {
76 Name(_ADR, 0x00020005)
77 Name(_PRW, Package() {0x18, 4})
78 Method(_PRT,0) {
Kyösti Mälkki3f246702021-01-25 16:48:51 +020079 If(PICM) { Return(APS8) } /* APIC mode */
Bruce Griffith27ed80b2014-08-15 11:46:25 -060080 Return (PS8) /* PIC Mode */
81 } /* end _PRT */
82} /* end PBR8 */
Michał Żygowski09eb8d02020-02-07 18:39:24 +010083
84Device(K10M) {
85 Name (_ADR, 0x00180003)
Michał Żygowskib84c6162020-03-23 14:41:32 +010086 #include <soc/amd/common/acpi/thermal_zone.asl>
Michał Żygowski09eb8d02020-02-07 18:39:24 +010087}