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>
34 lines
704 B
Plaintext
34 lines
704 B
Plaintext
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
OperationRegion (CMOS, SystemIO, 0x70, 0x2)
|
|
Field (CMOS, ByteAcc, NoLock, Preserve)
|
|
{
|
|
IND1, 8,
|
|
DAT1, 8,
|
|
}
|
|
|
|
IndexField (IND1, DAT1, ByteAcc, NoLock, Preserve)
|
|
{
|
|
Offset (0x4b),
|
|
KLTC, 8, // Keyboard Backlight Timeout
|
|
FCLS, 8, // Ctrl Fn Reverse (make keyboard Apple-like)
|
|
MXCH, 8, // Max Charge Level
|
|
FNMD, 8, // Fan Mode
|
|
}
|
|
|
|
OperationRegion (CMS2, SystemIO, 0x72, 0x2)
|
|
Field (CMS2, ByteAcc, NoLock, Preserve)
|
|
{
|
|
IND2, 8,
|
|
DAT2, 8,
|
|
}
|
|
|
|
IndexField (IND2, DAT2, ByteAcc, NoLock, Preserve)
|
|
{
|
|
Offset (0x80),
|
|
FLKS, 8, // Function Lock State
|
|
TPLS, 8, // Trackpad State
|
|
KLBC, 8, // Keyboard Backlight Brightness
|
|
KLSC, 8, // Keyboard Backlight State
|
|
}
|