1/* SPDX-License-Identifier: GPL-2.0-only */ 2 3Device(EC) 4{ 5 Name(_HID, EISAID("PNP0C09")) 6 Name(_UID, 0) 7 8 Name(_GPE, 0x17) 9 Mutex(ECLK, 0) 10 11 OperationRegion(ERAM, EmbeddedControl, 0x00, 0x100) 12 13 /* LID status change. */ 14 Method(_Q20, 0, NotSerialized) 15 { 16 Notify(LID, 0x80) 17 } 18 19 /* AC status change. */ 20 Method(_Q21, 0, NotSerialized) 21 { 22 Notify(AC, 0x80) 23 } 24 25 Method(_CRS, 0) 26 { 27 Name(ECMD, ResourceTemplate() 28 { 29 IO(Decode16, 0x62, 0x62, 1, 1) 30 IO(Decode16, 0x66, 0x66, 1, 1) 31 }) 32 Return(ECMD) 33 } 34 35 Method(_PRW, 0, NotSerialized) 36 { 37 Return(Package () { 0x23, 0x04 }) 38 } 39 40 Method(_INI, 0, NotSerialized) 41 { 42 } 43 44#include "battery.asl" 45} 46