Add support for the Getac P470
[coreboot.git] / src / mainboard / getac / p470 / acpi / gpe.asl
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
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  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
19  * MA 02110-1301 USA
20  */
21
22 Scope (_GPE)
23 {
24         /* The event numbers correspond to the bit numbers in the
25          * GPE0_EN register PMBASE + 0x2C.
26          */
27
28         // Hot Plug
29         Method (_L01, 0)
30         {
31                 // TODO
32         }
33
34         // Software GPE
35         Method (_L02, 0)
36         {
37                 Store (0, GPEC)
38         }
39
40         // USB1
41         Method (_L03, 0)
42         {
43                 Notify (\_SB.PCI0.USB1, 2)
44         }
45
46         // USB2
47         Method (_L04, 0)
48         {
49                 Notify (\_SB.PCI0.USB2, 2)
50         }
51
52         // AC97
53         Method (_L05, 0)
54         {
55                 Notify (\_SB.PCI0.MODM, 2)
56                 Notify (\_SB.PCI0.HDEF, 2)
57         }
58
59         // _L06 TCOSCI
60
61         // SMBus (Reserved!)
62         Method (_L07, 0)
63         {
64                 Store (0x20, \_SB.PCI0.SBUS.HSTS)
65         }
66
67         // COM1/COM2 (RI)
68         Method (_L08, 0)
69         {
70                 // Don't care
71         }
72
73         // PCIe
74         Method (_L09, 0)
75         {
76                 // TODO
77         }
78
79         // _L0A BatLow / Quick Resume
80
81         // PME
82         Method (_L0B, 0)
83         {
84                 Notify (\_SB.PCI0.PCIB.LANR, 0x02)
85         }
86
87         // USB3
88         Method (_L0C, 0)
89         {
90                 Notify(\_SB.PCI0.USB3, 2)
91         }
92
93         // PME B0
94         Method (_L0D, 0)
95         {
96                 Notify(\_SB.PCI0.EHC1, 2)
97         }
98
99         // USB4
100         Method (_L0E, 0)
101         {
102                 Notify(\_SB.PCI0.USB4, 2)
103         }
104 }