2 * This file is part of the coreboot project.
4 * Copyright (C) 2012 The Chromium OS Authors. All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 /* The _PTS method (Prepare To Sleep) is called before the OS is
17 * entering a sleep state. The sleep state number is passed in Arg0
22 // Notify EC to enter S3
23 Store(0x01, \_SB.PCI0.LPCB.EC0.S3FG)
26 /* The _WAK method is called on system wakeup */
30 /* Update AC status */
31 Store (\_SB.PCI0.LPCB.EC0.ACPW, Local0)
32 if (LNotEqual (Local0, \PWRS)) {
34 Notify (\_SB.PCI0.LPCB.EC0.AC, 0x80)
37 /* Update LID status */
38 Store (NOT(\_SB.PCI0.LPCB.EC0.HPLD), Local0)
39 if (LNotEqual (Local0, \LIDS)) {
41 Notify (\_SB.LID0, 0x80)
44 Return(Package(){0,0})