blob: 14bdbcad87a071a352aeb680f403cb990c766bf6 [file] [log] [blame]
Bernhard M. Wiedemann6e554de2010-05-30 12:56:17 +00001/*
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 modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Bernhard M. Wiedemann6e554de2010-05-30 12:56:17 +000014 */
15
16Device(EC0)
17{
18 Name (_HID, EISAID("PNP0C09"))
19 Name (_UID, 1)
20
Martin Roth3bb94052015-11-24 16:37:15 -070021 // _REG method requires that an operation region is defined.
22 OperationRegion (ERAM, EmbeddedControl, 0x00, 0xff)
23 Field (ERAM, ByteAcc, Lock, Preserve) {}
Bernhard M. Wiedemann6e554de2010-05-30 12:56:17 +000024
Martin Roth3bb94052015-11-24 16:37:15 -070025 Name (ECMD, ResourceTemplate()
26 {
27 IO (Decode16, 0x62, 0x62, 0, 1)
28 IO (Decode16, 0x66, 0x66, 0, 1)
29 })
30
31 Method (_CRS, 0, NotSerialized)
32 {
Bernhard M. Wiedemann6e554de2010-05-30 12:56:17 +000033 Return (ECMD)
34 }
35
36 Method (_REG, 2)
37 {
38 // This method is needed by Windows XP/2000
39 // for EC initialization before a driver
40 // is loaded
41 }
42
43 Name (_GPE, 23) // GPI07 / GPE23 -> Runtime SCI
44
45 // TODO EC Query methods
46
47 // TODO Scope _SB devices for AC power, LID, Power button
48
49}