Add EC support that supports different Q Events and EC memory. Created from the ITE IT5570E and IT8987E datasheets, all using data port 0x4e. Tested with Ubuntu 20.04.3 and Windows 10 on: * StarBook Mk V (TGL + IT5570E): * ITE Firmware 1.00 * Merlin Firmware 1.00 * LabTop Mk IV (CML + IT8987E): * ITE Firmware 1.04 * LabTop Mk III (KBL + IT8987E): * ITE Firmware 3.12 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Change-Id: I8023c26de23c874c84106fda96e64dcfa0c5ba32 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58343 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Andy Pont <andy.pont@sdcsystems.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
17 lines
212 B
Plaintext
17 lines
212 B
Plaintext
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
Device (LID0)
|
|
{
|
|
Name (_HID, EisaId ("PNP0C0D"))
|
|
Method (_STA)
|
|
{
|
|
Return (0x0F)
|
|
}
|
|
Method (_LID,0)
|
|
{
|
|
// 0x00 == Closed
|
|
// 0x01 == Open
|
|
Return (^^LSTE)
|
|
}
|
|
}
|