1 /* SPDX-License-Identifier: GPL-2.0-only */
5 Name(\PICM, 0) // IOAPIC/8259
7 Field (GNVS, ByteAcc, NoLock, Preserve)
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)
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 */
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 */
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 */
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 */
71 BLCS, 8, // 0x64 - Backlight control possible?
72 BRTL, 8, // 0x65 - Brightness Level
74 /* Ambient Light Sensors */
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
82 EMAE, 8, // 0x78 - EMA enable
83 EMAP, 16, // 0x79 - EMA pointer
84 EMAL, 16, // 0x7b - EMA length
87 MEFE, 8, // 0x82 - MEF enable
90 TPMP, 8, // 0x8c - TPM
91 TPME, 8, // 0x8d - TPM enable
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
103 PM1I, 32, // System Wake Source - PM1 Index
104 GPEI, 32, // GPE Wake Source
107 TPIQ, 8, // 0xf5 - trackpad IRQ value
111 /* Set flag to enable USB charging in S3 */
118 /* Set flag to disable USB charging in S3 */
125 /* Set flag to enable USB charging in S5 */
132 /* Set flag to disable USB charging in S5 */
139 /* Set flag to enable 3G module in S3 */
145 /* Set flag to disable 3G module in S3 */
151 /* Set XHCI Mode enable */
157 /* Set XHCI Mode disable */
166 #ifdef HAVE_THERMALZONE
167 /* Update Primary Thermal Zone */
168 If (CondRefOf (\_TZ.THRM)) {
169 Notify (\_TZ.THRM, 0x81)
173 /* Update Secondary Thermal Zone */
174 If (CondRefOf (\_TZ.SKIN)) {
175 Notify (\_TZ.SKIN, 0x81)
179 /* Update Fan 0 thresholds */
187 /* Update Fan 1 thresholds */
195 /* Update Fan 2 thresholds */
203 /* Update Fan 3 thresholds */
211 /* Update Fan 4 thresholds */
219 /* Update Temperature Sensor ID */