1 /* SPDX-License-Identifier: GPL-2.0-only */
3 /* The _PTS method (Prepare To Sleep) is called before the OS is
4 * entering a sleep state. The sleep state number is passed in Arg0
9 // Notify EC to enter S3
10 \_SB.PCI0.LPCB.EC0.S3FG = 0x01
13 /* The _WAK method is called on system wakeup */
17 /* Update AC status */
18 Local0 = \_SB.PCI0.LPCB.EC0.ACPW
19 if (Local0 != \PWRS) {
21 Notify (\_SB.PCI0.LPCB.EC0.AC, 0x80)
24 /* Update LID status */
25 Local0 = ~\_SB.PCI0.LPCB.EC0.HPLD
26 if (Local0 != \LIDS) {
28 Notify (\_SB.LID0, 0x80)
31 Return(Package(){0,0})