src/ec/clevo/it5570e/acpi/lid.asl
raw| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | Device (LID) |
| 4 | { |
| 5 | Name (_HID, "PNP0C0D") |
| 6 | Name (_PRW, Package () { EC_GPE_LID, 3 }) |
| 7 | |
| 8 | Method (_LID) |
| 9 | { |
| 10 | Printf ("LID: _LID: state=%o", ToDecimalString (\_SB.PCI0.LPCB.EC0.LSTE)) |
| 11 | |
| 12 | Return (\_SB.PCI0.LPCB.EC0.LSTE) |
| 13 | } |
| 14 | |
| 15 | Method (_PSW, 1) |
| 16 | { |
| 17 | Printf ("LID: _PSW: set lid wake enable=%o", ToDecimalString (Arg0)) |
| 18 | |
| 19 | \_SB.PCI0.LPCB.EC0.LWKE = Arg0 |
| 20 | } |
| 21 | } |