Angel Pons | 89ab250 | 2020-04-03 01:22:28 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Tobias Diedrich | cee930a | 2017-02-12 14:09:06 +0100 | [diff] [blame] | 2 | |
| 3 | Method(_WAK,1) |
| 4 | { |
| 5 | /* Turn on radios */ |
Elyes HAOUAS | c23ec64 | 2020-10-08 09:52:35 +0200 | [diff] [blame] | 6 | GP33 = 1 /* WLBT_OFF_5# (To pin 5 of WiFi mPCIe) */ |
| 7 | GP36 = 1 /* WLBT_OFF_51# (To pin 51 of WiFi mPCIe) */ |
Tobias Diedrich | cee930a | 2017-02-12 14:09:06 +0100 | [diff] [blame] | 8 | /* There also is RF_OFF# on pin 20, controlled by the EC */ |
| 9 | |
| 10 | Return(Package(){0,0}) |
| 11 | } |
| 12 | |
| 13 | Method(_PTS,1) |
| 14 | { |
| 15 | /* Turn off radios */ |
Elyes HAOUAS | c23ec64 | 2020-10-08 09:52:35 +0200 | [diff] [blame] | 16 | GP33 = 0 /* WLBT_OFF_5# (To pin 5 of WiFi mPCIe) */ |
| 17 | GP36 = 0 /* WLBT_OFF_51# (To pin 51 of WiFi mPCIe) */ |
Tobias Diedrich | cee930a | 2017-02-12 14:09:06 +0100 | [diff] [blame] | 18 | /* There also is RF_OFF# on pin 20, controlled by the EC */ |
| 19 | } |
| 20 | |
| 21 | Scope(\_SI) |
| 22 | { |
| 23 | Method(_SST, 1, NotSerialized) |
| 24 | { |
Elyes HAOUAS | c23ec64 | 2020-10-08 09:52:35 +0200 | [diff] [blame] | 25 | If (Arg0 < 2) |
Tobias Diedrich | cee930a | 2017-02-12 14:09:06 +0100 | [diff] [blame] | 26 | { |
| 27 | /* Thinkpad LED on */ |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 28 | \_SB.PCI0.LPCB.EC0.LED (0, 0x80) |
Tobias Diedrich | cee930a | 2017-02-12 14:09:06 +0100 | [diff] [blame] | 29 | } |
| 30 | Else |
| 31 | { |
| 32 | /* Thinkpad LED blinking */ |
Felix Singer | fa06bcb | 2022-12-26 09:32:47 +0100 | [diff] [blame^] | 33 | \_SB.PCI0.LPCB.EC0.LED (0, 0xC0) |
Tobias Diedrich | cee930a | 2017-02-12 14:09:06 +0100 | [diff] [blame] | 34 | } |
| 35 | } |
| 36 | } |