summaryrefslogtreecommitdiff
path: root/src/mainboard/system76/kbl-u/acpi/ec_ram.asl
blob: 2ee90e51cec8695927165defae8ce69b05e87675 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/* SPDX-License-Identifier: GPL-2.0-only */

OperationRegion (ERAM, EmbeddedControl, 0, 0xFF)
Field (ERAM, ByteAcc, Lock, Preserve)
{
	NMSG, 8,
	SLED, 4,
	Offset (0x02),
	MODE, 1,
	FAN0, 1,
	TME0, 1,
	TME1, 1,
	FAN1, 1,
	, 2,
	Offset (0x03),
	LSTE, 1,	// Lid is open
	LSW0, 1,
	LWKE, 1,	// Lid wake
	WAKF, 1,
	,   2,
	PWKE, 1,
	MWKE, 1,
	AC0, 8,
	PSV, 8,
	CRT, 8,
	TMP, 8,
	AC1, 8,
	BBST, 8,
	Offset (0x0B),
	Offset (0x0C),
	Offset (0x0D),
	Offset (0x0E),
	SLPT, 8,
	SWEJ, 1,
	SWCH, 1,
	Offset (0x10),
	ADP, 1,		// AC adapter connected
	AFLT, 1,
	BAT0, 1,
	BAT1, 1,
	, 3,
	PWOF, 1,
	WFNO, 8,	// Wake cause
	BPU0, 32,
	BDC0, 32,	// Battery design capacity
	BFC0, 32,	// Battery full capacity
	BTC0, 32,
	BDV0, 32,	// Battery design voltage
	BST0, 32,	// Battery status
	BPR0, 32,	// Battery current
	BRC0, 32,	// Battery remaining capacity
	BPV0, 32,	// Battery voltage
	BTP0, 16,
	BRS0, 16,
	BCW0, 32,
	BCL0, 32,
	BCG0, 32,
	BG20, 32,
	BMO0, 64,
	BIF0, 64,
	BSN0, 32,
	BTY0, 64,
	Offset (0x68),
	ECOS, 8,	// Detected OS, 0 = no ACPI, 1 = ACPI but no driver, 2 = ACPI with driver
	LNXD, 8,
	ECPS, 8,
	Offset (0x6C),
	BTMP, 16,
	EVTN, 8,
	Offset (0x72),
	PRCL, 8,
	PRC0, 8,
	PRC1, 8,
	PRCM, 8,
	PRIN, 8,
	PSTE, 8,
	PCAD, 8,
	PEWL, 8,
	PWRL, 8,
	PECD, 8,
	PEHI, 8,
	PECI, 8,
	PEPL, 8,
	PEPM, 8,
	PWFC, 8,
	PECC, 8,
	PDT0, 8,
	PDT1, 8,
	PDT2, 8,
	PDT3, 8,
	PRFC, 8,
	PRS0, 8,
	PRS1, 8,
	PRS2, 8,
	PRS3, 8,
	PRS4, 8,
	PRCS, 8,
	PEC0, 8,
	PEC1, 8,
	PEC2, 8,
	PEC3, 8,
	CMDR, 8,
	CVRT, 8,
	GTVR, 8,
	FANT, 8,
	SKNT, 8,
	AMBT, 8,
	MCRT, 8,
	DIM0, 8,
	DIM1, 8,
	PMAX, 8,
	PPDT, 8,
	PECH, 8,
	PMDT, 8,
	TSD0, 8,
	TSD1, 8,
	TSD2, 8,
	TSD3, 8,
	CPUP, 16,
	MCHP, 16,
	SYSP, 16,
	CPAP, 16,
	MCAP, 16,
	SYAP, 16,
	CFSP, 16,
	CPUE, 16,
	Offset (0xC6),
	Offset (0xC7),
	VGAT, 8,
	OEM1, 8,
	OEM2, 8,
	OEM3, 16,
	OEM4, 8,	// Extra SCI data
	Offset (0xCE),
	DUT1, 8,	// Fan 1 duty
	DUT2, 8,	// Fan 2 duty
	RPM1, 16,	// Fan 1 RPM
	RPM2, 16,	// Fan 2 RPM
	RPM4, 16,
	Offset (0xD7),
	DTHL, 8,
	DTBP, 8,
	AIRP, 8,	// Airplane mode LED
	WINF, 8,	// Enable ACPI brightness controls
	RINF, 8,
	Offset (0xDD),
	INF2, 8,
	MUTE, 1,
	Offset (0xE0),
	RPM3, 16,
	ECKS, 8,
	Offset (0xE4),
	, 4,
	XTUF, 1,
	EP12, 1,
	Offset (0xE5),
	INF3, 8,
	Offset (0xE7),
	GFOF, 8,
	Offset (0xF0),
	PL1T, 16,
	PL2T, 16,
	TAUT, 8,
	Offset (0xF8),
	FCMD, 8,
	FDAT, 8,
	FBUF, 8,
	FBF1, 8,
	FBF2, 8,
	FBF3, 8,
}