EC: Add Lenovo H8
[coreboot.git] / src / ec / lenovo / h8 / acpi / systemstatus.asl
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (c) 2011 Sven Schnelle <svens@stackframe.org>
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
23 Scope (\_SI)
24 {
25         Method(_SST, 1, NotSerialized)
26         {
27                 If (LEqual (Arg0, 0)) {
28                         /* Indicator off */
29
30                         /* power LED off */
31                         \_SB.PCI0.LPCB.EC.LED(0x00)
32                         /* suspend LED off */
33                         \_SB.PCI0.LPCB.EC.LED(0x07)
34                 }
35
36                 If (LEqual (Arg0, 1)) {
37                         /* working state */
38
39                         /* power LED on */
40                         \_SB.PCI0.LPCB.EC.LED(0x80)
41                         /* suspend LED off */
42                         \_SB.PCI0.LPCB.EC.LED(0x07)
43                 }
44
45                 If (LEqual (Arg0, 2)) {
46                         /* waking state */
47
48                         /* power LED om */
49                         \_SB.PCI0.LPCB.EC.LED(0x80)
50                         /* suspend LED blinking */
51                         \_SB.PCI0.LPCB.EC.LED(0xc7)
52                 }
53
54                 If (LEqual (Arg0, 3)) {
55                         /* sleep state */
56
57                         /* power LED off */
58                         \_SB.PCI0.LPCB.EC.LED(0x00)
59                         /* suspend LED on */
60                         \_SB.PCI0.LPCB.EC.LED(0x87)
61                 }
62         }
63 }