tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / samsung / stumpy / acpi / platform.asl
blobaee066bf8996248d77ec740ef365ee36f89322ad
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2007-2009 coresystems GmbH
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         Store (Zero, GP08)  // Disable Bluetooth
24         If (LEqual (Arg0, 3)) {
25                 // NVS has a flag to determine USB policy in S3
26                 If (S3U0) {
27                         Store (One, GP47)   // Enable USB0
28                 } Else {
29                         Store (Zero, GP47)  // Disable USB0
30                 }
32                 // NVS has a flag to determine USB policy in S3
33                 If (S3U1) {
34                         Store (One, GP56)   // Enable USB1
35                 } Else {
36                         Store (Zero, GP56)  // Disable USB1
37                 }
38         }
39         If (LEqual (Arg0, 5)) {
40                 // NVS has a flag to determine USB policy in S5
41                 If (S5U0) {
42                         Store (One, GP47)   // Enable USB0
43                 } Else {
44                         Store (Zero, GP47)  // Disable USB0
45                 }
47                 // NVS has a flag to determine USB policy in S5
48                 If (S5U1) {
49                         Store (One, GP56)   // Enable USB1
50                 } Else {
51                         Store (Zero, GP56)  // Disable USB1
52                 }
53         }
56 /* The _WAK method is called on system wakeup */
58 Method(_WAK,1)
60         Return(Package(){0,0})
63 /* CMOS Access */
64 OperationRegion (CMOS, SystemIO, 0x70, 0x71)
65 Field (CMOS, ByteAcc, NoLock, Preserve)
67         NVRI, 8,
68         NVRD, 8,
71 IndexField (NVRI, NVRD, ByteAcc, NoLock, Preserve)
73         Offset (0x32),
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)