Angel Pons | 210a008 | 2020-04-02 23:48:24 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 2 | |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 3 | Device(EC) |
| 4 | { |
| 5 | Name (_HID, EISAID("PNP0C09")) |
| 6 | Name (_UID, 0) |
| 7 | |
Vladimir Serbinenko | 219f068 | 2013-11-13 18:24:04 +0100 | [diff] [blame] | 8 | Name (_GPE, THINKPAD_EC_GPE) |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 9 | Mutex (ECLK, 0) |
| 10 | |
| 11 | OperationRegion(ERAM, EmbeddedControl, 0x00, 0x100) |
| 12 | Field (ERAM, ByteAcc, NoLock, Preserve) |
| 13 | { |
Vladimir Serbinenko | 969553e | 2013-11-14 19:08:38 +0100 | [diff] [blame] | 14 | Offset (0x02), |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 15 | DKR1, 1, /* Dock register 1 */ |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 16 | Offset (0x05), |
| 17 | HSPA, 1, |
| 18 | Offset (0x0C), |
| 19 | LEDS, 8, /* LED state */ |
Nicola Corna | 47f87bd | 2017-02-11 14:00:03 +0100 | [diff] [blame] | 20 | Offset (0x0F), |
| 21 | , 7, |
| 22 | TBSW, 1, /* Tablet mode switch */ |
Vladimir Serbinenko | 969553e | 2013-11-14 19:08:38 +0100 | [diff] [blame] | 23 | Offset (0x1a), |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 24 | DKR2, 1, /* Dock register 2 */ |
Sven Schnelle | d8b60a0 | 2011-06-23 13:43:52 +0200 | [diff] [blame] | 25 | Offset (0x2a), |
| 26 | EVNT, 8, /* write will trigger EC event */ |
Patrick Rudolph | 0709dc0 | 2017-08-27 17:46:52 +0200 | [diff] [blame] | 27 | Offset (0x2f), |
| 28 | , 6, |
| 29 | FAND, 1, /* Fan disengage */ |
| 30 | FANA, 1, /* Fan automatic mode enable */ |
Nicola Corna | 068edc1 | 2017-02-11 14:52:24 +0100 | [diff] [blame] | 31 | Offset (0x30), |
| 32 | , 6, |
| 33 | ALMT, 1, /* Audio Mute + LED */ |
Patrick Rudolph | f281b6d | 2017-08-14 18:41:32 +0200 | [diff] [blame] | 34 | Offset (0x31), |
| 35 | , 2, |
| 36 | UWBE, 1, /* Ultra Wideband enable */ |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 37 | Offset (0x3a), |
Nicola Corna | 068edc1 | 2017-02-11 14:52:24 +0100 | [diff] [blame] | 38 | AMUT, 1, /* Audio Mute (internal use) */ |
Vladimir Serbinenko | cbcf28f | 2015-05-13 18:22:49 +0200 | [diff] [blame] | 39 | , 3, |
| 40 | BTEB, 1, |
| 41 | WLEB, 1, |
| 42 | WWEB, 1, |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 43 | Offset (0x3B), |
| 44 | , 1, |
Vladimir Serbinenko | 969553e | 2013-11-14 19:08:38 +0100 | [diff] [blame] | 45 | KBLT, 1, /* Keyboard Light */ |
Sven Schnelle | 86e1aea | 2011-06-16 16:43:04 +0200 | [diff] [blame] | 46 | , 2, |
| 47 | USPW, 1, /* USB Power enable */ |
Patrick Rudolph | 112ae48 | 2017-08-13 18:05:13 +0200 | [diff] [blame] | 48 | Offset (0x48), |
| 49 | HPPI, 1, /* Headphone plugged in */ |
| 50 | GSTS, 1, /* Master wireless switch */ |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 51 | Offset (0x4e), |
Vladimir Serbinenko | 969553e | 2013-11-14 19:08:38 +0100 | [diff] [blame] | 52 | WAKE, 16, |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 53 | Offset (0x78), |
| 54 | TMP0, 8, /* Thermal Zone 0 temperature */ |
| 55 | TMP1, 8, /* Thermal Zone 1 temperature */ |
| 56 | Offset (0x81), |
Vladimir Serbinenko | 969553e | 2013-11-14 19:08:38 +0100 | [diff] [blame] | 57 | PAGE, 8, /* Information Page Selector */ |
| 58 | Offset (0xfe), |
| 59 | , 4, |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 60 | DKR3, 1 /* Dock register 3 */ |
Vladimir Serbinenko | 969553e | 2013-11-14 19:08:38 +0100 | [diff] [blame] | 61 | } |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 62 | |
Patrick Rudolph | dbf5a5d | 2018-07-29 08:08:33 +0200 | [diff] [blame] | 63 | /* Called on OperationRegion driver changes */ |
| 64 | Method (_REG, 2, NotSerialized) |
| 65 | { |
| 66 | /* Wait for ERAM driver loaded */ |
Felix Singer | 95bfa03 | 2022-01-02 00:48:19 +0100 | [diff] [blame] | 67 | if (Arg1 == 1) { |
Patrick Rudolph | dbf5a5d | 2018-07-29 08:08:33 +0200 | [diff] [blame] | 68 | /* Fill HKEY defaults on first boot */ |
Felix Singer | 95bfa03 | 2022-01-02 00:48:19 +0100 | [diff] [blame] | 69 | if (^HKEY.INIT == 0) { |
Felix Singer | f45a6c2 | 2022-12-12 04:54:01 +0100 | [diff] [blame] | 70 | ^HKEY.WBDC = BTEB |
| 71 | ^HKEY.WWAN = WWEB |
Felix Singer | ca4b587 | 2022-12-26 08:17:06 +0100 | [diff] [blame^] | 72 | ^HKEY.INIT = 1 |
Patrick Rudolph | dbf5a5d | 2018-07-29 08:08:33 +0200 | [diff] [blame] | 73 | } |
| 74 | } |
| 75 | } |
| 76 | |
Paul Menzel | 8ce7bc1 | 2017-10-08 16:03:57 +0200 | [diff] [blame] | 77 | Method (_CRS, 0, Serialized) |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 78 | { |
| 79 | Name (ECMD, ResourceTemplate() |
| 80 | { |
| 81 | IO (Decode16, 0x62, 0x62, 1, 1) |
| 82 | IO (Decode16, 0x66, 0x66, 1, 1) |
| 83 | }) |
| 84 | Return (ECMD) |
| 85 | } |
| 86 | |
Vladimir Serbinenko | 7096a0c | 2014-08-28 01:31:33 +0200 | [diff] [blame] | 87 | Method (TLED, 1, NotSerialized) |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 88 | { |
Felix Singer | f45a6c2 | 2022-12-12 04:54:01 +0100 | [diff] [blame] | 89 | LEDS = Arg0 |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 90 | } |
| 91 | |
Vladimir Serbinenko | 8603513 | 2014-08-28 01:41:20 +0200 | [diff] [blame] | 92 | /* Not used for coreboot. Provided for compatibility with thinkpad-acpi. */ |
| 93 | Method (LED, 2, NotSerialized) |
| 94 | { |
Felix Singer | 274fa64 | 2022-12-16 04:27:21 +0100 | [diff] [blame] | 95 | TLED(Arg0 | Arg1) |
Vladimir Serbinenko | 8603513 | 2014-08-28 01:41:20 +0200 | [diff] [blame] | 96 | } |
| 97 | |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 98 | Method (_INI, 0, NotSerialized) |
| 99 | { |
| 100 | } |
| 101 | |
| 102 | Method (MUTE, 1, NotSerialized) |
| 103 | { |
Felix Singer | f45a6c2 | 2022-12-12 04:54:01 +0100 | [diff] [blame] | 104 | AMUT = Arg0 |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 105 | } |
| 106 | |
Vladimir Serbinenko | cbcf28f | 2015-05-13 18:22:49 +0200 | [diff] [blame] | 107 | Method (RADI, 1, NotSerialized) |
| 108 | { |
Felix Singer | f45a6c2 | 2022-12-12 04:54:01 +0100 | [diff] [blame] | 109 | WLEB = Arg0 |
| 110 | WWEB = Arg0 |
| 111 | BTEB = Arg0 |
Vladimir Serbinenko | cbcf28f | 2015-05-13 18:22:49 +0200 | [diff] [blame] | 112 | } |
| 113 | |
Sven Schnelle | 86e1aea | 2011-06-16 16:43:04 +0200 | [diff] [blame] | 114 | Method (USBP, 1, NotSerialized) |
| 115 | { |
Felix Singer | f45a6c2 | 2022-12-12 04:54:01 +0100 | [diff] [blame] | 116 | USPW = Arg0 |
Sven Schnelle | 86e1aea | 2011-06-16 16:43:04 +0200 | [diff] [blame] | 117 | } |
| 118 | |
Stefan Ott | f63fbdb | 2017-05-10 02:01:44 +0200 | [diff] [blame] | 119 | Method (LGHT, 1, NotSerialized) |
| 120 | { |
Felix Singer | f45a6c2 | 2022-12-12 04:54:01 +0100 | [diff] [blame] | 121 | KBLT = Arg0 |
Stefan Ott | f63fbdb | 2017-05-10 02:01:44 +0200 | [diff] [blame] | 122 | } |
| 123 | |
Sven Schnelle | 86e1aea | 2011-06-16 16:43:04 +0200 | [diff] [blame] | 124 | |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 125 | /* Sleep Button pressed */ |
| 126 | Method(_Q13, 0, NotSerialized) |
| 127 | { |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 128 | Notify(^SLPB, 0x80) |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 129 | } |
| 130 | |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 131 | /* Brightness up GPE */ |
| 132 | Method(_Q14, 0, NotSerialized) |
| 133 | { |
Vladimir Serbinenko | dfc0881 | 2013-11-26 16:37:45 +0100 | [diff] [blame] | 134 | BRIGHTNESS_UP() |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 135 | } |
| 136 | |
| 137 | /* Brightness down GPE */ |
| 138 | Method(_Q15, 0, NotSerialized) |
| 139 | { |
Vladimir Serbinenko | dfc0881 | 2013-11-26 16:37:45 +0100 | [diff] [blame] | 140 | BRIGHTNESS_DOWN() |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 141 | } |
| 142 | |
| 143 | /* Next display GPE */ |
| 144 | Method(_Q16, 0, NotSerialized) |
| 145 | { |
Angel Pons | 822148c | 2020-04-29 22:58:39 +0200 | [diff] [blame] | 146 | Notify (\_SB.PCI0.GFX0, 0x82) |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 147 | } |
Angel Pons | 822148c | 2020-04-29 22:58:39 +0200 | [diff] [blame] | 148 | |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 149 | /* AC status change: present */ |
| 150 | Method(_Q26, 0, NotSerialized) |
| 151 | { |
| 152 | Notify (AC, 0x80) |
Elyes HAOUAS | 610d465 | 2018-05-29 11:02:43 +0200 | [diff] [blame] | 153 | \PNOT() |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 154 | } |
| 155 | |
| 156 | /* AC status change: not present */ |
| 157 | Method(_Q27, 0, NotSerialized) |
| 158 | { |
| 159 | Notify (AC, 0x80) |
Felix Singer | f45a6c2 | 2022-12-12 04:54:01 +0100 | [diff] [blame] | 160 | EVNT = 0x50 |
Elyes HAOUAS | 610d465 | 2018-05-29 11:02:43 +0200 | [diff] [blame] | 161 | \PNOT() |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 162 | } |
| 163 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 164 | Method(_Q2A, 0, NotSerialized) |
| 165 | { |
| 166 | Notify(^LID, 0x80) |
| 167 | } |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 168 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 169 | Method(_Q2B, 0, NotSerialized) |
| 170 | { |
| 171 | Notify(^LID, 0x80) |
| 172 | } |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 173 | |
| 174 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 175 | /* IBM proprietary buttons. */ |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 176 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 177 | Method (_Q10, 0, NotSerialized) |
| 178 | { |
| 179 | ^HKEY.RHK (0x01) |
| 180 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 181 | |
Nicola Corna | fab9ae8 | 2019-02-18 17:44:18 +0100 | [diff] [blame] | 182 | /* |
| 183 | * Alternative layout (like in the Thinkpad X1 Carbon 1st generation): |
| 184 | * * Fn-F2 (_Q11) -> not mapped |
| 185 | * * Fn-F3 (_Q12) -> scancode 0x01 (KEY_COFFEE) |
| 186 | * |
| 187 | * Default layout (like in the Thinkpad X220): |
| 188 | * * Fn-F2 (_Q11) -> scancode 0x01 (KEY_COFFEE) |
| 189 | * * Fn-F3 (_Q12) -> scancode 0x02 (KEY_BATTERY) |
| 190 | */ |
| 191 | #ifdef EC_LENOVO_H8_ALT_FN_F2F3_LAYOUT |
| 192 | Method (_Q11, 0, NotSerialized) |
| 193 | { |
| 194 | // Not mapped |
| 195 | } |
| 196 | |
| 197 | Method (_Q12, 0, NotSerialized) |
| 198 | { |
| 199 | ^HKEY.RHK (0x02) |
| 200 | } |
| 201 | #else |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 202 | Method (_Q11, 0, NotSerialized) |
| 203 | { |
| 204 | ^HKEY.RHK (0x02) |
| 205 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 206 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 207 | Method (_Q12, 0, NotSerialized) |
| 208 | { |
| 209 | ^HKEY.RHK (0x03) |
| 210 | } |
Nicola Corna | fab9ae8 | 2019-02-18 17:44:18 +0100 | [diff] [blame] | 211 | #endif |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 212 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 213 | Method (_Q64, 0, NotSerialized) |
| 214 | { |
| 215 | ^HKEY.RHK (0x05) |
| 216 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 217 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 218 | Method (_Q65, 0, NotSerialized) |
| 219 | { |
| 220 | ^HKEY.RHK (0x06) |
| 221 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 222 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 223 | Method (_Q17, 0, NotSerialized) |
| 224 | { |
| 225 | ^HKEY.RHK (0x08) |
| 226 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 227 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 228 | Method (_Q66, 0, NotSerialized) |
| 229 | { |
| 230 | ^HKEY.RHK (0x0A) |
| 231 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 232 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 233 | Method (_Q6A, 0, NotSerialized) |
| 234 | { |
| 235 | ^HKEY.RHK (0x1B) |
| 236 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 237 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 238 | Method (_Q1A, 0, NotSerialized) |
| 239 | { |
| 240 | ^HKEY.RHK (0x0B) |
| 241 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 242 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 243 | Method (_Q1B, 0, NotSerialized) |
| 244 | { |
| 245 | ^HKEY.RHK (0x0C) |
| 246 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 247 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 248 | Method (_Q62, 0, NotSerialized) |
| 249 | { |
| 250 | ^HKEY.RHK (0x0D) |
| 251 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 252 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 253 | Method (_Q60, 0, NotSerialized) |
| 254 | { |
| 255 | ^HKEY.RHK (0x0E) |
| 256 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 257 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 258 | Method (_Q61, 0, NotSerialized) |
| 259 | { |
| 260 | ^HKEY.RHK (0x0F) |
| 261 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 262 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 263 | Method (_Q1F, 0, NotSerialized) |
| 264 | { |
| 265 | ^HKEY.RHK (0x12) |
| 266 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 267 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 268 | Method (_Q67, 0, NotSerialized) |
| 269 | { |
| 270 | ^HKEY.RHK (0x13) |
| 271 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 272 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 273 | Method (_Q63, 0, NotSerialized) |
| 274 | { |
| 275 | ^HKEY.RHK (0x14) |
| 276 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 277 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 278 | Method (_Q19, 0, NotSerialized) |
| 279 | { |
| 280 | ^HKEY.RHK (0x18) |
| 281 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 282 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 283 | Method (_Q1C, 0, NotSerialized) |
| 284 | { |
| 285 | ^HKEY.RHK (0x19) |
| 286 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 287 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 288 | Method (_Q1D, 0, NotSerialized) |
| 289 | { |
| 290 | ^HKEY.RHK (0x1A) |
| 291 | } |
Vladimir Serbinenko | d26558c | 2013-11-14 18:56:45 +0100 | [diff] [blame] | 292 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 293 | Method (_Q5C, 0, NotSerialized) |
| 294 | { |
| 295 | ^HKEY.RTAB (0xB) |
| 296 | } |
Vladimir Serbinenko | fc10c34 | 2014-08-25 22:58:11 +0200 | [diff] [blame] | 297 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 298 | Method (_Q5D, 0, NotSerialized) |
| 299 | { |
| 300 | ^HKEY.RTAB (0xC) |
| 301 | } |
Vladimir Serbinenko | fc10c34 | 2014-08-25 22:58:11 +0200 | [diff] [blame] | 302 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 303 | Method (_Q5E, 0, NotSerialized) |
| 304 | { |
| 305 | ^HKEY.RTAB (0x9) |
| 306 | } |
Vladimir Serbinenko | fc10c34 | 2014-08-25 22:58:11 +0200 | [diff] [blame] | 307 | |
Elyes HAOUAS | b933109 | 2016-09-05 19:55:34 +0200 | [diff] [blame] | 308 | Method (_Q5F, 0, NotSerialized) |
| 309 | { |
| 310 | ^HKEY.RTAB (0xA) |
| 311 | } |
Vladimir Serbinenko | fc10c34 | 2014-08-25 22:58:11 +0200 | [diff] [blame] | 312 | |
Patrick Rudolph | 9b8ef11 | 2017-11-13 19:00:11 +0100 | [diff] [blame] | 313 | /* |
| 314 | * Set FAN disengage: |
| 315 | * Arg0: 1: Run at full speed |
| 316 | * 0: Automatic fan control |
| 317 | */ |
| 318 | Method (FANE, 1, Serialized) |
| 319 | { |
| 320 | If (Arg0) { |
Felix Singer | ca4b587 | 2022-12-26 08:17:06 +0100 | [diff] [blame^] | 321 | FAND = 1 |
Felix Singer | f45a6c2 | 2022-12-12 04:54:01 +0100 | [diff] [blame] | 322 | FANA = Zero |
Patrick Rudolph | 9b8ef11 | 2017-11-13 19:00:11 +0100 | [diff] [blame] | 323 | } Else { |
Felix Singer | f45a6c2 | 2022-12-12 04:54:01 +0100 | [diff] [blame] | 324 | FAND = Zero |
Felix Singer | ca4b587 | 2022-12-26 08:17:06 +0100 | [diff] [blame^] | 325 | FANA = 1 |
Patrick Rudolph | 9b8ef11 | 2017-11-13 19:00:11 +0100 | [diff] [blame] | 326 | } |
| 327 | } |
| 328 | |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 329 | #include "ac.asl" |
| 330 | #include "battery.asl" |
| 331 | #include "sleepbutton.asl" |
| 332 | #include "lid.asl" |
| 333 | #include "beep.asl" |
Sven Schnelle | 14748a5 | 2011-04-13 09:23:45 +0000 | [diff] [blame] | 334 | #include "thermal.asl" |
Sven Schnelle | ee4c6f7 | 2011-04-17 14:55:21 +0000 | [diff] [blame] | 335 | #include "systemstatus.asl" |
Patrick Rudolph | f81f62a | 2017-11-14 18:48:13 +0100 | [diff] [blame] | 336 | #include "thinkpad.asl" |
Sven Schnelle | ffcd143 | 2011-04-11 19:43:32 +0000 | [diff] [blame] | 337 | } |