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