mainboards: Drop PWRS from GNVS
[coreboot.git] / src / southbridge / intel / bd82x6x / acpi / globalnvs.asl
blob0d798b8ca23b7bce545cd8b53a519e03754f14ab
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* Global Variables */
5 Name(\PICM, 0)          // IOAPIC/8259
7 Field (GNVS, ByteAcc, NoLock, Preserve)
9         /* Miscellaneous */
10         OSYS,   16,     // 0x00 - Operating System
11         SMIF,    8,     // 0x02 - SMI function
12         PRM0,    8,     // 0x03 - SMI function parameter
13         PRM1,    8,     // 0x04 - SMI function parameter
14         SCIF,    8,     // 0x05 - SCI function
15         PRM2,    8,     // 0x06 - SCI function parameter
16         PRM3,    8,     // 0x07 - SCI function parameter
17         LCKF,    8,     // 0x08 - Global Lock function for EC
18         PRM4,    8,     // 0x09 - Lock function parameter
19         PRM5,    8,     // 0x0a - Lock function parameter
20         P80D,   32,     // 0x0b - Debug port (IO 0x80) value
21         LIDS,    8,     // 0x0f - LID state (open = 1)
22         ,        8,     // 0x10 - Power State (AC = 1)
23         /* Thermal policy */
24         Offset (0x11),
25         TLVL,    8,     // 0x11 - Throttle Level Limit
26         FLVL,    8,     // 0x12 - Current FAN Level
27         TCRT,    8,     // 0x13 - Critical Threshold
28         TPSV,    8,     // 0x14 - Passive Threshold
29         TMAX,    8,     // 0x15 - CPU Tj_max
30         F0OF,    8,     // 0x16 - FAN 0 OFF Threshold
31         F0ON,    8,     // 0x17 - FAN 0 ON Threshold
32         F0PW,    8,     // 0x18 - FAN 0 PWM value
33         F1OF,    8,     // 0x19 - FAN 1 OFF Threshold
34         F1ON,    8,     // 0x1a - FAN 1 ON Threshold
35         F1PW,    8,     // 0x1b - FAN 1 PWM value
36         F2OF,    8,     // 0x1c - FAN 2 OFF Threshold
37         F2ON,    8,     // 0x1d - FAN 2 ON Threshold
38         F2PW,    8,     // 0x1e - FAN 2 PWM value
39         F3OF,    8,     // 0x1f - FAN 3 OFF Threshold
40         F3ON,    8,     // 0x20 - FAN 3 ON Threshold
41         F3PW,    8,     // 0x21 - FAN 3 PWM value
42         F4OF,    8,     // 0x22 - FAN 4 OFF Threshold
43         F4ON,    8,     // 0x23 - FAN 4 ON Threshold
44         F4PW,    8,     // 0x24 - FAN 4 PWM value
45         TMPS,    8,     // 0x25 - Temperature Sensor ID
46         /* Processor Identification */
47         Offset (0x28),
48         ,        8,     // 0x28 -  Enabled by coreboot
49         ,        8,     // 0x29 - Multi Processor Enable
50         PCP0,    8,     // 0x2a - PDC CPU/CORE 0
51         PCP1,    8,     // 0x2b - PDC CPU/CORE 1
52         PPCM,    8,     // 0x2c - Max. PPC state
53         ,        8,     // 0x2d - Processor count
54         /* Super I/O & CMOS config */
55         Offset (0x32),
56         NATP,    8,     // 0x32 -
57         S5U0,    8,     // 0x33 - Enable USB0 in S5
58         S5U1,    8,     // 0x34 - Enable USB1 in S5
59         S3U0,    8,     // 0x35 - Enable USB0 in S3
60         S3U1,    8,     // 0x36 - Enable USB1 in S3
61         S33G,    8,     // 0x37 - Enable 3G in S3
62         ,        32,    // 0x38 - CBMEM TOC
63         /* Integrated Graphics Device */
64         Offset (0x3c),
65         IGDS,    8,     // 0x3c - IGD state (primary = 1)
66         TLST,    8,     // 0x3d - Display Toggle List pointer
67         CADL,    8,     // 0x3e - Currently Attached Devices List
68         PADL,    8,     // 0x3f - Previously Attached Devices List
69         /* Backlight Control */
70         Offset (0x64),
71         BLCS,    8,     // 0x64 - Backlight control possible?
72         BRTL,    8,     // 0x65 - Brightness Level
73         ODDS,    8,     // 0x66
74         /* Ambient Light Sensors */
75         Offset (0x6e),
76         ALSE,    8,     // 0x6e - ALS enable
77         ALAF,    8,     // 0x6f - Ambient light adjustment factor
78         LLOW,    8,     // 0x70 - LUX Low
79         LHIH,    8,     // 0x71 - LUX High
80         /* EMA */
81         Offset (0x78),
82         EMAE,    8,     // 0x78 - EMA enable
83         EMAP,   16,     // 0x79 - EMA pointer
84         EMAL,   16,     // 0x7b - EMA length
85         /* MEF */
86         Offset (0x82),
87         MEFE,    8,     // 0x82 - MEF enable
88         /* TPM support */
89         Offset (0x8c),
90         TPMP,    8,     // 0x8c - TPM
91         TPME,    8,     // 0x8d - TPM enable
92         /* SATA */
93         Offset (0x96),
94         GTF0,   56,     // 0x96 - GTF task file buffer for port 0
95         GTF1,   56,     // 0x9d - GTF task file buffer for port 1
96         GTF2,   56,     // 0xa4 - GTF task file buffer for port 2
97         IDEM,    8,     // 0xab - IDE mode (compatible / enhanced)
98         IDET,    8,     // 0xac - IDE
99         /* XHCI */
100         Offset (0xb2),
101         XHCI,    8,
103         PM1I,   32,     // System Wake Source - PM1 Index
104         GPEI,   32,     // GPE Wake Source
106         Offset (0xf5),
107         TPIQ,    8,     // 0xf5 - trackpad IRQ value
108         CBMC,   32,
111 /* Set flag to enable USB charging in S3 */
112 Method (S3UE)
114         \S3U0 = 1
115         \S3U1 = 1
118 /* Set flag to disable USB charging in S3 */
119 Method (S3UD)
121         \S3U0 = 0
122         \S3U1 = 0
125 /* Set flag to enable USB charging in S5 */
126 Method (S5UE)
128         \S5U0 = 1
129         \S5U1 = 1
132 /* Set flag to disable USB charging in S5 */
133 Method (S5UD)
135         \S5U0 = 0
136         \S5U1 = 0
139 /* Set flag to enable 3G module in S3 */
140 Method (S3GE)
142         \S33G = 1
145 /* Set flag to disable 3G module in S3 */
146 Method (S3GD)
148         \S33G = 0
151 /* Set XHCI Mode enable */
152 Method (XHCE)
154         \XHCI = 1
157 /* Set XHCI Mode disable */
158 Method (XHCD)
160         \XHCI = 0
162 External (\_TZ.SKIN)
164 Method (TZUP)
166 #ifdef HAVE_THERMALZONE
167         /* Update Primary Thermal Zone */
168         If (CondRefOf (\_TZ.THRM)) {
169                 Notify (\_TZ.THRM, 0x81)
170         }
171 #endif
173         /* Update Secondary Thermal Zone */
174         If (CondRefOf (\_TZ.SKIN)) {
175                 Notify (\_TZ.SKIN, 0x81)
176         }
179 /* Update Fan 0 thresholds */
180 Method (F0UT, 2)
182         \F0OF = Arg0
183         \F0ON = Arg1
184         TZUP ()
187 /* Update Fan 1 thresholds */
188 Method (F1UT, 2)
190         \F1OF = Arg0
191         \F1ON = Arg1
192         TZUP ()
195 /* Update Fan 2 thresholds */
196 Method (F2UT, 2)
198         \F2OF = Arg0
199         \F2ON = Arg1
200         TZUP ()
203 /* Update Fan 3 thresholds */
204 Method (F3UT, 2)
206         \F3OF = Arg0
207         \F3ON = Arg1
208         TZUP ()
211 /* Update Fan 4 thresholds */
212 Method (F4UT, 2)
214         \F4OF = Arg0
215         \F4ON = Arg1
216         TZUP ()
219 /* Update Temperature Sensor ID */
220 Method (TMPU, 1)
222         \TMPS = Arg0
223         TZUP ()