tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / google / stout / acpi / platform.asl
blob6d8b46118bd70f264d1a18c62404f635904efa54
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2012 The Chromium OS Authors. All rights reserved.
5  *
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.
9  *
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.
14  */
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
18  */
20 Method(_PTS,1)
22         // Notify EC to enter S3
23         Store(0x01, \_SB.PCI0.LPCB.EC0.S3FG)
26 /* The _WAK method is called on system wakeup */
28 Method(_WAK,1)
30         /* Update AC status */
31         Store (\_SB.PCI0.LPCB.EC0.ACPW, Local0)
32         if (LNotEqual (Local0, \PWRS)) {
33                 Store (Local0, \PWRS)
34                 Notify (\_SB.PCI0.LPCB.EC0.AC, 0x80)
35         }
37         /* Update LID status */
38         Store (NOT(\_SB.PCI0.LPCB.EC0.HPLD), Local0)
39         if (LNotEqual (Local0, \LIDS)) {
40                 Store (Local0, \LIDS)
41                 Notify (\_SB.LID0, 0x80)
42         }
44         Return(Package(){0,0})