• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: GPL-2.0-only */
2
3Device(EC0)
4{
5	Name (_HID, EISAID("PNP0C09"))
6	Name (_UID, 1)
7
8	// _REG method requires that an operation region is defined.
9	OperationRegion (ERAM, EmbeddedControl, 0x00, 0xff)
10	Field (ERAM, ByteAcc, Lock, Preserve) {}
11
12	Name (ECMD, ResourceTemplate()
13	{
14		IO (Decode16, 0x62, 0x62, 0, 1)
15		IO (Decode16, 0x66, 0x66, 0, 1)
16	})
17
18	Method (_CRS, 0, NotSerialized)
19	{
20		Return (ECMD)
21	}
22
23	Method (_REG, 2)
24	{
25		// This method is needed by Windows XP/2000
26		// for EC initialization before a driver
27		// is loaded
28	}
29
30	Name (_GPE, 23)	// GPI07 / GPE23 -> Runtime SCI
31
32	// TODO EC Query methods
33
34	// TODO Scope _SB devices for AC power, LID, Power button
35
36}
37