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,
24 Name (_HID, EISAID("PNP0C09"))
30 OperationRegion(ERAM, EmbeddedControl, 0x00, 0x100)
31 Field (ERAM, ByteAcc, NoLock, Preserve)
36 LEDS, 8, /* LED state */
39 KBLT, 1, /* Keyboard Light */
43 TMP0, 8, /* Thermal Zone 0 temperature */
44 TMP1, 8, /* Thermal Zone 1 temperature */
46 PAGE, 8 /* Information Page Selector */
51 Name (ECMD, ResourceTemplate()
53 IO (Decode16, 0x62, 0x62, 1, 1)
54 IO (Decode16, 0x66, 0x66, 1, 1)
59 Method (LED, 1, NotSerialized)
64 Method (_INI, 0, NotSerialized)
68 /* Sleep Button pressed */
69 Method(_Q13, 0, NotSerialized)
71 Notify(\_SB.PCI0.LPCB.EC.SLPB, 0x80)
74 /* Brightness up GPE */
75 Method(_Q14, 0, NotSerialized)
80 /* Brightness down GPE */
81 Method(_Q15, 0, NotSerialized)
86 /* AC status change: present */
87 Method(_Q26, 0, NotSerialized)
92 /* AC status change: not present */
93 Method(_Q27, 0, NotSerialized)
100 #include "battery.asl"
101 #include "sleepbutton.asl"