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, GP08) // Disable Bluetooth
24 If (LEqual (Arg0, 3)) {
25 // NVS has a flag to determine USB policy in S3
27 Store (One, GP47) // Enable USB0
29 Store (Zero, GP47) // Disable USB0
32 // NVS has a flag to determine USB policy in S3
34 Store (One, GP56) // Enable USB1
36 Store (Zero, GP56) // Disable USB1
39 If (LEqual (Arg0, 5)) {
40 // NVS has a flag to determine USB policy in S5
42 Store (One, GP47) // Enable USB0
44 Store (Zero, GP47) // Disable USB0
47 // NVS has a flag to determine USB policy in S5
49 Store (One, GP56) // Enable USB1
51 Store (Zero, GP56) // Disable USB1
56 /* The _WAK method is called on system wakeup */
60 Return(Package(){0,0})
64 OperationRegion (CMOS, SystemIO, 0x70, 0x71)
65 Field (CMOS, ByteAcc, NoLock, Preserve)
71 IndexField (NVRI, NVRD, ByteAcc, NoLock, Preserve)
74 US3B, 8, // USB Controller Reset S3 behavior
77 #define USB_RESET_DISABLE_MAGIC 0xdd
79 /* Disable USB Controller Reset in S3 (defaults to enabled) */
80 Method (USBR, 0, Serialized)
82 Store (USB_RESET_DISABLE_MAGIC, US3B)