blob: 5df3bc0492759587452c4554304e32026d109bc8 [file] [log] [blame]
Sean Rhodes296994b2021-10-14 20:58:15 +01001/* SPDX-License-Identifier: GPL-2.0-only */
2
3OperationRegion (ECF2, EmbeddedControl, 0x00, 0x100)
4Field (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
Sean Rhodesc2c96182022-01-02 12:16:27 +000019 TPLE, 8, // Trackpad State
Sean Rhodes296994b2021-10-14 20:58:15 +010020 AFG3, 8, // After G3
21 CLTP, 8, // Close Trackpad
22 WKOL, 8, // Wake on Lid
Sean Rhodes296994b2021-10-14 20:58:15 +010023 KLBE, 8, // Keyboard Backlight Brightness
Sean Rhodes45041ca2022-02-17 14:24:03 +000024 KLSE, 8, // Keyboard Backlight State
Sean Rhodes296994b2021-10-14 20:58:15 +010025
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),
Sean Rhodesc2c96182022-01-02 12:16:27 +000042 FLKE, 8, // Function Lock State
Sean Rhodes296994b2021-10-14 20:58:15 +010043
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
Sean Rhodesd57e57e2024-03-18 10:15:21 +000096 BPRP, 16, // Battery Remaining percentage
Sean Rhodes296994b2021-10-14 20:58:15 +010097
Sean Rhodes296994b2021-10-14 20:58:15 +010098 Offset(0x9d),
99 OPWE, 8, // OPM write to EC flag for UCSI
Sean Rhodes296994b2021-10-14 20:58:15 +0100100
101 Offset(0xbf),
102 EJ8A, 8, // EJ898A Firmware Version
103
104 Offset(0xc0),
Sean Rhodese40ca122022-05-16 08:23:08 +0100105 UCSV, 16, // UCSI DS Version
106 UCSD, 16, // UCSI DS Reserved
107 CCI0, 8, // UCSI DS CCI 0
108 CCI1, 8, // UCSI DS CCI 1
109 CCI2, 8, // UCSI DS CCI 2
110 CCI3, 8, // UCSI DS CCI 3
111 CTL0, 8, // UCSI DS Control 0
112 CTL1, 8, // UCSI DS Control 0
113 CTL2, 8, // UCSI DS Control 0
114 CTL3, 8, // UCSI DS Control 0
115 CTL4, 8, // UCSI DS Control 0
116 CTL5, 8, // UCSI DS Control 0
117 CTL6, 8, // UCSI DS Control 0
118 CTL7, 8, // UCSI DS Control 0
119
120 Offset(0xd0),
Sean Rhodes296994b2021-10-14 20:58:15 +0100121 MGI0, 8, // UCSI DS MGI 0
122 MGI1, 8, // UCSI DS MGI 1
123 MGI2, 8, // UCSI DS MGI 2
124 MGI3, 8, // UCSI DS MGI 3
125 MGI4, 8, // UCSI DS MGI 4
126 MGI5, 8, // UCSI DS MGI 5
127 MGI6, 8, // UCSI DS MGI 6
128 MGI7, 8, // UCSI DS MGI 7
129 MGI8, 8, // UCSI DS MGI 8
130 MGI9, 8, // UCSI DS MGI 9
131 MGIA, 8, // UCSI DS MGI A
132 MGIB, 8, // UCSI DS MGI B
133 MGIC, 8, // UCSI DS MGI C
134 MGID, 8, // UCSI DS MGI D
135 MGIE, 8, // UCSI DS MGI E
136 MGIF, 8, // UCSI DS MGI F
137
Sean Rhodese40ca122022-05-16 08:23:08 +0100138 Offset(0xe0),
Sean Rhodes296994b2021-10-14 20:58:15 +0100139 MGO0, 8, // UCSI DS MGO 0
140 MGO1, 8, // UCSI DS MGO 1
141 MGO2, 8, // UCSI DS MGO 2
142 MGO3, 8, // UCSI DS MGO 3
143 MGO4, 8, // UCSI DS MGO 4
144 MGO5, 8, // UCSI DS MGO 5
145 MGO6, 8, // UCSI DS MGO 6
146 MGO7, 8, // UCSI DS MGO 7
147 MGO8, 8, // UCSI DS MGO 8
148 MGO9, 8, // UCSI DS MGO 9
149 MGOA, 8, // UCSI DS MGO A
150 MGOB, 8, // UCSI DS MGO B
151 MGOC, 8, // UCSI DS MGO C
152 MGOD, 8, // UCSI DS MGO D
153 MGOE, 8, // UCSI DS MGO E
154 MGOF, 8, // UCSI DS MGO F
155
Sean Rhodes296994b2021-10-14 20:58:15 +0100156 Offset(0xf0),
157 P0SD, 8, // PD Port Status DD
158 P0S4, 8, // PD Port Status 4
159 P0S5, 8, // PD Port Status 5
160 P0SE, 8, // PD Port Status E
161 P0SA, 8, // PD Port Status 10
162 P0SB, 8, // PD Port Status 11
163
164 Offset(0xfd),
165 STCD, 8, // Shutdown Code
166 EJ8R, 8, // EJ898A Need Reboot
167 EJ8E, 8, // EJ898A Error
168}