Bernhard M. Wiedemann | 6e554de | 2010-05-30 12:56:17 +0000 | [diff] [blame] | 1 | /* |
| 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. Wiedemann | 6e554de | 2010-05-30 12:56:17 +0000 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | Device(EC0) |
| 17 | { |
| 18 | Name (_HID, EISAID("PNP0C09")) |
| 19 | Name (_UID, 1) |
| 20 | |
Martin Roth | 3bb9405 | 2015-11-24 16:37:15 -0700 | [diff] [blame^] | 21 | // _REG method requires that an operation region is defined. |
| 22 | OperationRegion (ERAM, EmbeddedControl, 0x00, 0xff) |
| 23 | Field (ERAM, ByteAcc, Lock, Preserve) {} |
Bernhard M. Wiedemann | 6e554de | 2010-05-30 12:56:17 +0000 | [diff] [blame] | 24 | |
Martin Roth | 3bb9405 | 2015-11-24 16:37:15 -0700 | [diff] [blame^] | 25 | 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. Wiedemann | 6e554de | 2010-05-30 12:56:17 +0000 | [diff] [blame] | 33 | 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 | } |