blob: 6e88f912dea1928d743ffaf3618933c91f5d161a [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
23 KLSE, 8, // Keyboard Backlight State
24 KLBE, 8, // Keyboard Backlight Brightness
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),
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 BT1T, 16, // Bt1 Temperature
98 BT1C, 8, // Bt1 Control
99
Sean Rhodes296994b2021-10-14 20:58:15 +0100100 Offset(0x9d),
101 OPWE, 8, // OPM write to EC flag for UCSI
Sean Rhodes296994b2021-10-14 20:58:15 +0100102
103 Offset(0xbf),
104 EJ8A, 8, // EJ898A Firmware Version
105
106 Offset(0xc0),
107 MGI0, 8, // UCSI DS MGI 0
108 MGI1, 8, // UCSI DS MGI 1
109 MGI2, 8, // UCSI DS MGI 2
110 MGI3, 8, // UCSI DS MGI 3
111 MGI4, 8, // UCSI DS MGI 4
112 MGI5, 8, // UCSI DS MGI 5
113 MGI6, 8, // UCSI DS MGI 6
114 MGI7, 8, // UCSI DS MGI 7
115 MGI8, 8, // UCSI DS MGI 8
116 MGI9, 8, // UCSI DS MGI 9
117 MGIA, 8, // UCSI DS MGI A
118 MGIB, 8, // UCSI DS MGI B
119 MGIC, 8, // UCSI DS MGI C
120 MGID, 8, // UCSI DS MGI D
121 MGIE, 8, // UCSI DS MGI E
122 MGIF, 8, // UCSI DS MGI F
123
124 Offset(0xd0),
125 MGO0, 8, // UCSI DS MGO 0
126 MGO1, 8, // UCSI DS MGO 1
127 MGO2, 8, // UCSI DS MGO 2
128 MGO3, 8, // UCSI DS MGO 3
129 MGO4, 8, // UCSI DS MGO 4
130 MGO5, 8, // UCSI DS MGO 5
131 MGO6, 8, // UCSI DS MGO 6
132 MGO7, 8, // UCSI DS MGO 7
133 MGO8, 8, // UCSI DS MGO 8
134 MGO9, 8, // UCSI DS MGO 9
135 MGOA, 8, // UCSI DS MGO A
136 MGOB, 8, // UCSI DS MGO B
137 MGOC, 8, // UCSI DS MGO C
138 MGOD, 8, // UCSI DS MGO D
139 MGOE, 8, // UCSI DS MGO E
140 MGOF, 8, // UCSI DS MGO F
141
142 Offset(0xe0),
143 UCSV, 16, // UCSI DS Version
144 UCSD, 16, // UCSI DS Reserved
145 CCI0, 8, // UCSI DS CCI 0
146 CCI1, 8, // UCSI DS CCI 1
147 CCI2, 8, // UCSI DS CCI 2
148 CCI3, 8, // UCSI DS CCI 3
149 CTL0, 8, // UCSI DS Control 0
150 CTL1, 8, // UCSI DS Control 0
151 CTL2, 8, // UCSI DS Control 0
152 CTL3, 8, // UCSI DS Control 0
153 CTL4, 8, // UCSI DS Control 0
154 CTL5, 8, // UCSI DS Control 0
155 CTL6, 8, // UCSI DS Control 0
156 CTL7, 8, // UCSI DS Control 0
157
158 Offset(0xf0),
159 P0SD, 8, // PD Port Status DD
160 P0S4, 8, // PD Port Status 4
161 P0S5, 8, // PD Port Status 5
162 P0SE, 8, // PD Port Status E
163 P0SA, 8, // PD Port Status 10
164 P0SB, 8, // PD Port Status 11
165
166 Offset(0xfd),
167 STCD, 8, // Shutdown Code
168 EJ8R, 8, // EJ898A Need Reboot
169 EJ8E, 8, // EJ898A Error
170}