Debian Codegraph @

src/ec/starlabs/merlin/variants/glk/emem.asl

raw
1 /* SPDX-License-Identifier: GPL-2.0-only */
2
3 OperationRegion (ECF2, EmbeddedControl, 0x00, 0x100)
4 Field (ECF2, ByteAcc, Lock, Preserve)
5 {
6 Offset(0x00),
7 ECMV, 8, // Major Version Number
8 ECSV, 8, // Minor Version Number
9 KBVS, 8, // Keyboard Controller Version
10 ECTV, 8, // Test Version Number
11 FRMF, 8, // Force Mirror Flag
12 TXEL, 8, // TXE Lock
13
14 Offset(0x10),
15 CPWR, 8, // Control Power
16 CDEV, 8, // Control Device
17 OSFG, 8, // OS Flag
18 CWFU, 8, // CW2015 Full
19 TPLE, 8, // Trackpad State
20 AFG3, 8, // After G3
21 CLTP, 8, // Close Trackpad
22 WKOL, 8, // Wake on Lid
23 KLBE, 8, // Keyboard Backlight Brightness
24 KLSE, 8, // Keyboard Backlight State
25
26 Offset(0x1a),
27 KLTE, 8, // Keyboard Backlight Timeout
28
29 Offset(0x22),
30 ECT0, 8, // EC Build Time 0
31 ECT1, 8, // EC Build Time 1
32 ECT2, 8, // EC Build Time 2
33 ECT3, 8, // EC Build Time 3
34 ECT4, 8, // EC Build Time 4
35 ECT5, 8, // EC Build Time 5
36 ECT6, 8, // EC Build Time 6
37 ECT7, 8, // EC Build Time 7
38 ECT8, 8, // EC Build Time 8
39 ECT9, 8, // EC Build Time 9
40
41 Offset(0x2c),
42 FLKE, 8, // Function Lock State
43
44 Offset(0x30),
45 STEF, 8, // Sensor T Error F
46 ECD0, 8, // EC Build Date 0
47 ECD1, 8, // EC Build Date 1
48 ECD2, 8, // EC Build Date 2
49 ECD3, 8, // EC Build Date 3
50 ECD4, 8, // EC Build Date 4
51 ECD5, 8, // EC Build Date 5
52 ECD6, 8, // EC Build Date 6
53 ECD7, 8, // EC Build Date 7
54 ECD8, 8, // EC Build Date 8
55 ECD9, 8, // EC Build Date 9
56
57 Offset(0x40),
58 SHIP, 8, // Shipping Mode Flag
59 LEDF, 8, // LED Control Flag
60 LIDF, 8, // Lid Flag
61 KBFL, 8, // Keyboard Flag
62 CYCC, 8, // Cycle Count
63
64 Offset(0x46),
65 BFCP, 8, // Battery Full Charge Percentage
66
67 Offset(0x62),
68 TSE2, 8, // Sensor 2 Temperature
69 SENF, 8, // Sensor F
70 TSHT, 8, // Thermal Sensor High Trip Point
71 TSLT, 8, // Thermal Sensor Low Trip Point
72 THER, 8, // Thermal Source
73
74 Offset(0x70),
75 CPUT, 8, // PECI CPU Temperature
76 PMXT, 8, // PLMX Temperature
77 CHAR, 8, // Charger Temperature
78
79 Offset(0x7e),
80 OCTF, 8, // OEM Control Flag
81 LSTE, 1, // Lid Status
82 , 7, // Reserved
83
84 Offset(0x80),
85 ECPS, 8, // AC & Battery status
86 B1MN, 8, // Battery Model Number Code
87 B1SN, 16, // Battery Serial Number
88 B1DC, 16, // Battery Design Capacity
89 B1DV, 16, // Battery Design Voltage
90 B1FC, 16, // Battery Last Full Charge Capacity
91 B1TP, 16, // Battery Trip Point
92 B1ST, 8, // Battery State
93 B1PR, 16, // Battery Present Rate
94 B1RC, 16, // Battery Remaining Capacity
95 B1PV, 16, // Battery Present Voltage
96 B1RP, 16, // Battery Remaining percentage
97 B1CC, 16, // Battery Cycle Count
98
99 Offset(0x9d),
100 OPWE, 8, // OPM write to EC flag for UCSI
101
102 Offset(0xbf),
103 EJ8A, 8, // EJ898A Firmware Version
104
105 Offset(0xc0),
106 UCSV, 16, // UCSI DS Version
107 UCSD, 16, // UCSI DS Reserved
108 CCI0, 8, // UCSI DS CCI 0
109 CCI1, 8, // UCSI DS CCI 1
110 CCI2, 8, // UCSI DS CCI 2
111 CCI3, 8, // UCSI DS CCI 3
112 CTL0, 8, // UCSI DS Control 0
113 CTL1, 8, // UCSI DS Control 0
114 CTL2, 8, // UCSI DS Control 0
115 CTL3, 8, // UCSI DS Control 0
116 CTL4, 8, // UCSI DS Control 0
117 CTL5, 8, // UCSI DS Control 0
118 CTL6, 8, // UCSI DS Control 0
119 CTL7, 8, // UCSI DS Control 0
120
121 Offset(0xd0),
122 MGI0, 8, // UCSI DS MGI 0
123 MGI1, 8, // UCSI DS MGI 1
124 MGI2, 8, // UCSI DS MGI 2
125 MGI3, 8, // UCSI DS MGI 3
126 MGI4, 8, // UCSI DS MGI 4
127 MGI5, 8, // UCSI DS MGI 5
128 MGI6, 8, // UCSI DS MGI 6
129 MGI7, 8, // UCSI DS MGI 7
130 MGI8, 8, // UCSI DS MGI 8
131 MGI9, 8, // UCSI DS MGI 9
132 MGIA, 8, // UCSI DS MGI A
133 MGIB, 8, // UCSI DS MGI B
134 MGIC, 8, // UCSI DS MGI C
135 MGID, 8, // UCSI DS MGI D
136 MGIE, 8, // UCSI DS MGI E
137 MGIF, 8, // UCSI DS MGI F
138
139 Offset(0xe0),
140 MGO0, 8, // UCSI DS MGO 0
141 MGO1, 8, // UCSI DS MGO 1
142 MGO2, 8, // UCSI DS MGO 2
143 MGO3, 8, // UCSI DS MGO 3
144 MGO4, 8, // UCSI DS MGO 4
145 MGO5, 8, // UCSI DS MGO 5
146 MGO6, 8, // UCSI DS MGO 6
147 MGO7, 8, // UCSI DS MGO 7
148 MGO8, 8, // UCSI DS MGO 8
149 MGO9, 8, // UCSI DS MGO 9
150 MGOA, 8, // UCSI DS MGO A
151 MGOB, 8, // UCSI DS MGO B
152 MGOC, 8, // UCSI DS MGO C
153 MGOD, 8, // UCSI DS MGO D
154 MGOE, 8, // UCSI DS MGO E
155 MGOF, 8, // UCSI DS MGO F
156
157 Offset(0xf0),
158 P0SD, 8, // PD Port Status DD
159 P0S4, 8, // PD Port Status 4
160 P0S5, 8, // PD Port Status 5
161 P0SE, 8, // PD Port Status E
162 P0SA, 8, // PD Port Status 10
163 P0SB, 8, // PD Port Status 11
164
165 Offset(0xfd),
166 STCD, 8, // Shutdown Code
167 EJ8R, 8, // EJ898A Need Reboot
168 EJ8E, 8, // EJ898A Error
169 }