tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / mainboard / google / panther / acpi / mainboard.asl
blobd7cd12dd5efcf657b00652cf1079b604e8f62b0e
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2012 Google Inc.
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; version 2 of
9  * 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.
15  */
17 #include <mainboard/google/panther/onboard.h>
19 Scope (\_SB)
21         Device (PWRB)
22         {
23                 Name(_HID, EisaId("PNP0C0C"))
24         }
28  * LAN connected to Root Port 3, becomes Root Port 1 after coalesce
29  */
30 Scope (\_SB.PCI0.RP01)
32         Device (ETH0)
33         {
34                 Name (_ADR, 0x00000000)
35                 Name (_PRW, Package() { PANTHER_NIC_WAKE_GPIO, 3 })
37                 Method (_DSW, 3, NotSerialized)
38                 {
39                         Store (PANTHER_NIC_WAKE_GPIO, Local0)
41                         If (LEqual (Arg0, 1)) {
42                                 // Enable GPIO as wake source
43                                 \_SB.PCI0.LPCB.GWAK (Local0)
44                         }
45                 }
46         }
50  * WLAN connected to Root Port 4, becomes Root Port 2 after coalesce
51  */
52 Scope (\_SB.PCI0.RP02)
54         Device (WLAN)
55         {
56                 Name (_ADR, 0x00000000)
57                 Name (_PRW, Package() { PANTHER_WLAN_WAKE_GPIO, 3 })
59                 Method (_DSW, 3, NotSerialized)
60                 {
61                         Store (PANTHER_WLAN_WAKE_GPIO, Local0)
63                         If (LEqual (Arg0, 1)) {
64                                 // Enable GPIO as wake source
65                                 \_SB.PCI0.LPCB.GWAK (Local0)
66                         }
67                 }
68         }