1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <southbridge/intel/common/acpi/platform.asl>
5 /* The _PTS method (Prepare To Sleep) is called before the OS is
6 * entering a sleep state. The sleep state number is passed in Arg0
13 /* The _WAK method is called on system wakeup */
17 /* Update AC status */
18 Local0 = \_SB.PCI0.LPCB.EC0.ACEX
19 if (Local0 != \PWRS) {
21 Notify (\_SB.PCI0.LPCB.EC0.AC, 0x80)
24 /* Update LID status */
25 Local0 = \_SB.PCI0.LPCB.EC0.LIDS
26 if (Local0 != \LIDS) {
28 Notify (\_SB.PCI0.LPCB.EC0.LID0, 0x80)
31 Return(Package(){0,0})