summaryrefslogtreecommitdiff
path: root/src/ec/starlabs/merlin/acpi/cmos.asl
blob: f4468f75e4d740d239ddd2222b019a9d1ef50c94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* 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),
	FLKC, 8,		// Function Lock State
	TPLC, 8,		// Trackpad State
	KLBC, 8,		// Keyboard Backlight Brightness
	KLSC, 8,		// Keyboard Backlight State
}