1 /* SPDX-License-Identifier: GPL-2.0-only */
3 OperationRegion (ECF2, EmbeddedControl, 0x00, 0x100)
4 Field (ECF2, ByteAcc, Lock, Preserve)
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
15 CPWR, 8, // Control Power
16 CDEV, 8, // Control Device
18 CWFU, 8, // CW2015 Full
19 TPLE, 8, // Trackpad State
21 CLTP, 8, // Close Trackpad
22 WKOL, 8, // Wake on Lid
23 KLBE, 8, // Keyboard Backlight Brightness
24 KLSE, 8, // Keyboard Backlight State
27 KLTE, 8, // Keyboard Backlight Timeout
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
42 FLKE, 8, // Function Lock State
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
58 SHIP, 8, // Shipping Mode Flag
59 LEDF, 8, // LED Control Flag
61 KBFL, 8, // Keyboard Flag
62 CYCC, 8, // Cycle Count
65 BFCP, 8, // Battery Full Charge Percentage
68 TSE2, 8, // Sensor 2 Temperature
70 TSHT, 8, // Thermal Sensor High Trip Point
71 TSLT, 8, // Thermal Sensor Low Trip Point
72 THER, 8, // Thermal Source
75 CPUT, 8, // PECI CPU Temperature
76 PMXT, 8, // PLMX Temperature
77 CHAR, 8, // Charger Temperature
80 OCTF, 8, // OEM Control Flag
81 LSTE, 1, // Lid Status
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
100 OPWE, 8, // OPM write to EC flag for UCSI
103 EJ8A, 8, // EJ898A Firmware Version
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
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
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
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
166 STCD, 8, // Shutdown Code
167 EJ8R, 8, // EJ898A Need Reboot
168 EJ8E, 8, // EJ898A Error