2 * This file is part of the coreboot project.
4 * Copyright (c) 2011 Sven Schnelle <svens@stackframe.org>
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
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.
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,
25 Name (_HID, EISAID("PNP0C09"))
31 OperationRegion(ERAM, EmbeddedControl, 0x00, 0x100)
32 Field (ERAM, ByteAcc, NoLock, Preserve)
37 LEDS, 8, /* LED state */
39 AMUT, 1, /* Audio Mute */
42 KBLT, 1, /* Keyboard Light */
44 USPW, 1, /* USB Power enable */
48 TMP0, 8, /* Thermal Zone 0 temperature */
49 TMP1, 8, /* Thermal Zone 1 temperature */
51 PAGE, 8 /* Information Page Selector */
56 Name (ECMD, ResourceTemplate()
58 IO (Decode16, 0x62, 0x62, 1, 1)
59 IO (Decode16, 0x66, 0x66, 1, 1)
64 Method (LED, 1, NotSerialized)
69 Method (_INI, 0, NotSerialized)
73 Method (MUTE, 1, NotSerialized)
78 Method (USBP, 1, NotSerialized)
84 /* Sleep Button pressed */
85 Method(_Q13, 0, NotSerialized)
87 Notify(\_SB.PCI0.LPCB.EC.SLPB, 0x80)
90 /* Brightness up GPE */
91 Method(_Q14, 0, NotSerialized)
96 /* Brightness down GPE */
97 Method(_Q15, 0, NotSerialized)
102 /* AC status change: present */
103 Method(_Q26, 0, NotSerialized)
108 /* AC status change: not present */
109 Method(_Q27, 0, NotSerialized)
114 Method(_Q2A, 0, NotSerialized)
116 Notify(\_SB.PCI0.LPCB.EC.LID, 0x80)
119 Method(_Q2B, 0, NotSerialized)
121 Notify(\_SB.PCI0.LPCB.EC.LID, 0x80)
126 #include "battery.asl"
127 #include "sleepbutton.asl"
130 #include "thermal.asl"
131 #include "systemstatus.asl"