blob: 8f4e6369af8702dacc43ed2beaa192da956aff89 [file] [log] [blame]
Stefan Reinauer6651da32012-04-27 23:16:30 +02001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2009 coresystems GmbH
5 * Copyright (C) 2012 The Chromium OS Authors. All rights reserved.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Stefan Reinauer6651da32012-04-27 23:16:30 +020015 */
16
Stefan Reinauer6651da32012-04-27 23:16:30 +020017/* The _PTS method (Prepare To Sleep) is called before the OS is
18 * entering a sleep state. The sleep state number is passed in Arg0
19 */
20
21Method(_PTS,1)
22{
23 // NVS has a flag to determine USB policy in S3
24 if (S3U0) {
25 Store (One, GP47) // Enable USB0
26 } Else {
27 Store (Zero, GP47) // Disable USB0
28 }
29
30 // NVS has a flag to determine USB policy in S3
31 if (S3U1) {
32 Store (One, GP56) // Enable USB1
33 } Else {
34 Store (Zero, GP56) // Disable USB1
35 }
36}
37
38/* The _WAK method is called on system wakeup */
39
40Method(_WAK,1)
41{
42 Return(Package(){0,0})
43}