2 * This file is part of the coreboot project.
4 * Copyright (C) 2007-2009 coresystems GmbH
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"))
27 Name (_GPE, 23) // GPI07 / GPE23 -> Runtime SCI
31 OperationRegion(ERAM, EmbeddedControl, 0x00, 0xff)
32 Field (ERAM, ByteAcc, NoLock, Preserve)
34 Offset(0x04), // Command interface
39 Offset(0x18), // SMBus
58 Offset(0x83), // Thermal
71 Name (ECMD, ResourceTemplate()
73 IO (Decode16, 0x62, 0x62, 1, 1)
74 IO (Decode16, 0x66, 0x66, 1, 1)
82 // This method is needed by Windows XP/2000 for
83 // EC initialization before a driver is loaded
85 If (LEqual(Arg0, 0x03)) {
94 Store("_Q11: Fn-F8 (Sleep Button) pressed", Debug)
100 Store("_Q12: Fn-F9 (Display Switch) pressed", Debug)
107 Store("_Q30: AC In/Out", Debug)
108 Notify(ADP1, 0x80) // Tell the Power Adapter
109 PNOT() // and the CPU and Battery
114 Store("_Q31: LID Open/Close", Debug)
120 Store("_Q32: Battery 1 In/Out", Debug)
131 Store("_Q33: Battery 2 In/Out", Debug)
142 Store("_Q34: LPT/FDD", Debug)
148 Store("_Q35: Processor is hot", Debug)
153 Store("_Q36: Thermal Warning", Debug)
158 Store("_Q37: PME", Debug)
163 Store("_Q38: Thermal", Debug)
168 Store("_Q39: Thermal", Debug)
171 // TODO Scope _SB devices for AC power, LID, Power button