2 * This file is part of the coreboot project.
4 * Copyright (C) 2007-2009 coresystems GmbH
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 Store (Zero, GP35) // Disable WLAN
23 Store (Zero, GP38) // Disable WWAN
26 Store (Zero, GP43) // Enable HSPA
28 Store (One, GP43) // Disable HSPA
31 If (LEqual (Arg0, 3)) {
32 // NVS has a flag to determine USB policy in S3
34 Store (One, GP47) // Enable USB0
36 Store (Zero, GP47) // Disable USB0
39 // NVS has a flag to determine USB policy in S3
41 Store (One, GP56) // Enable USB1
43 Store (Zero, GP56) // Disable USB1
46 If (LEqual (Arg0, 5)) {
47 // NVS has a flag to determine USB policy in S5
49 Store (One, GP47) // Enable USB0
51 Store (Zero, GP47) // Disable USB0
54 // NVS has a flag to determine USB policy in S5
56 Store (One, GP56) // Enable USB1
58 Store (Zero, GP56) // Disable USB1
63 /* The _WAK method is called on system wakeup */
67 /* Update in case state changed while asleep */
68 Store (\_SB.PCI0.LPCB.EC0.ACEX, \PWRS)
70 /* Enable OS control of fan */
71 Store (One, \_SB.PCI0.LPCB.EC0.FCOS)
73 Return(Package(){0,0})