tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / samsung / lumpy / acpi / platform.asl
blobbbd3d41f715e5823d5d0fe3739eb4e63897c65b7
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, GP35)  // Disable WLAN
23         Store (Zero, GP38)  // Disable WWAN
25         If (S33G) {
26                 Store (Zero, GP43)  // Enable HSPA
27         } Else {
28                 Store (One, GP43)   // Disable HSPA
29         }
31         If (LEqual (Arg0, 3)) {
32                 // NVS has a flag to determine USB policy in S3
33                 If (S3U0) {
34                         Store (One, GP47)   // Enable USB0
35                 } Else {
36                         Store (Zero, GP47)  // Disable USB0
37                 }
39                 // NVS has a flag to determine USB policy in S3
40                 If (S3U1) {
41                         Store (One, GP56)   // Enable USB1
42                 } Else {
43                         Store (Zero, GP56)  // Disable USB1
44                 }
45         }
46         If (LEqual (Arg0, 5)) {
47                 // NVS has a flag to determine USB policy in S5
48                 If (S5U0) {
49                         Store (One, GP47)   // Enable USB0
50                 } Else {
51                         Store (Zero, GP47)  // Disable USB0
52                 }
54                 // NVS has a flag to determine USB policy in S5
55                 If (S5U1) {
56                         Store (One, GP56)   // Enable USB1
57                 } Else {
58                         Store (Zero, GP56)  // Disable USB1
59                 }
60         }
63 /* The _WAK method is called on system wakeup */
65 Method(_WAK,1)
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})