blob: 2a5dd24f2dbcf1594926e159e39cf2388d37c638 [file] [log] [blame]
Angel Pons89ab2502020-04-03 01:22:28 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Tobias Diedrichcee930a2017-02-12 14:09:06 +01002
3Method(_WAK,1)
4{
5 /* Turn on radios */
Elyes HAOUASc23ec642020-10-08 09:52:35 +02006 GP33 = 1 /* WLBT_OFF_5# (To pin 5 of WiFi mPCIe) */
7 GP36 = 1 /* WLBT_OFF_51# (To pin 51 of WiFi mPCIe) */
Tobias Diedrichcee930a2017-02-12 14:09:06 +01008 /* There also is RF_OFF# on pin 20, controlled by the EC */
9
10 Return(Package(){0,0})
11}
12
13Method(_PTS,1)
14{
15 /* Turn off radios */
Elyes HAOUASc23ec642020-10-08 09:52:35 +020016 GP33 = 0 /* WLBT_OFF_5# (To pin 5 of WiFi mPCIe) */
17 GP36 = 0 /* WLBT_OFF_51# (To pin 51 of WiFi mPCIe) */
Tobias Diedrichcee930a2017-02-12 14:09:06 +010018 /* There also is RF_OFF# on pin 20, controlled by the EC */
19}
20
21Scope(\_SI)
22{
23 Method(_SST, 1, NotSerialized)
24 {
Elyes HAOUASc23ec642020-10-08 09:52:35 +020025 If (Arg0 < 2)
Tobias Diedrichcee930a2017-02-12 14:09:06 +010026 {
27 /* Thinkpad LED on */
Felix Singerfa06bcb2022-12-26 09:32:47 +010028 \_SB.PCI0.LPCB.EC0.LED (0, 0x80)
Tobias Diedrichcee930a2017-02-12 14:09:06 +010029 }
30 Else
31 {
32 /* Thinkpad LED blinking */
Felix Singerfa06bcb2022-12-26 09:32:47 +010033 \_SB.PCI0.LPCB.EC0.LED (0, 0xC0)
Tobias Diedrichcee930a2017-02-12 14:09:06 +010034 }
35 }
36}