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
14 ECBY, 8, // Build Year
15 ECBM, 8, // Build Month
17 ECBI, 8, // Build Index
20 CPWR, 8, // Control Power
21 CDEV, 8, // Control Device
25 TPLE, 8, // Trackpad State
28 KLSE, 8, // Keyboard Backlight State
29 KLBE, 8, // Keyboard Backlight Brightness
30 KLTE, 8, // Keyboard Backlight Timeout
33 TCHC, 8, // Thermal Charge CMD
34 TCHF, 8, // Thermal Charge Flag
37 FLKE, 8, // Function Lock State
40 STEF, 8, // Sensor T Error F
43 SHIP, 8, // Shipping Mode Flag
47 KBFL, 8, // Keyboard Flag
50 CHRA, 16, // Charge Rate
51 CHIC, 16, // Charge Input Current
52 CHVL, 16, // Charge Vlot
53 CHOP, 16, // Charge Option
56 TSE2, 8, // Sensor 2 Temperature
58 TSHT, 8, // Thermal Sensor High Trip Point
59 TSLT, 8, // Thermal Sensor Low Trip Point
60 THER, 8, // Thermal Source
64 CPUT, 8, // PECI CPU Temperature
65 PMXT, 8, // PLMX Temperature
66 CHAR, 8, // Charger Temperature
69 OCTF, 8, // OEM Control Flag
70 LSTE, 1, // Lid Status
74 ECPS, 8, // AC & Battery status
75 B1MN, 8, // Battery Model Number Code
76 B1SN, 16, // Battery Serial Number
77 B1DC, 16, // Battery Design Capacity
78 B1DV, 16, // Battery Design Voltage
79 B1FC, 16, // Battery Last Full Charge Capacity
80 B1TP, 16, // Battery Trip Point
81 B1ST, 8, // Battery State
82 B1PR, 16, // Battery Present Rate
83 B1RC, 16, // Battery Remaining Capacity
84 B1PV, 16, // Battery Present Voltage
85 B1RP, 16, // Battery Remaining percentage
86 B1CC, 16, // Battery Cycle Count
89 OPWE, 8, // OPM write to EC flag for UCSI
92 EJ8A, 8, // EJ898A Firmware Version
95 MGI0, 8, // UCSI DS MGI 0
96 MGI1, 8, // UCSI DS MGI 1
97 MGI2, 8, // UCSI DS MGI 2
98 MGI3, 8, // UCSI DS MGI 3
99 MGI4, 8, // UCSI DS MGI 4
100 MGI5, 8, // UCSI DS MGI 5
101 MGI6, 8, // UCSI DS MGI 6
102 MGI7, 8, // UCSI DS MGI 7
103 MGI8, 8, // UCSI DS MGI 8
104 MGI9, 8, // UCSI DS MGI 9
105 MGIA, 8, // UCSI DS MGI A
106 MGIB, 8, // UCSI DS MGI B
107 MGIC, 8, // UCSI DS MGI C
108 MGID, 8, // UCSI DS MGI D
109 MGIE, 8, // UCSI DS MGI E
110 MGIF, 8, // UCSI DS MGI F
113 MGO0, 8, // UCSI DS MGO 0
114 MGO1, 8, // UCSI DS MGO 1
115 MGO2, 8, // UCSI DS MGO 2
116 MGO3, 8, // UCSI DS MGO 3
117 MGO4, 8, // UCSI DS MGO 4
118 MGO5, 8, // UCSI DS MGO 5
119 MGO6, 8, // UCSI DS MGO 6
120 MGO7, 8, // UCSI DS MGO 7
121 MGO8, 8, // UCSI DS MGO 8
122 MGO9, 8, // UCSI DS MGO 9
123 MGOA, 8, // UCSI DS MGO A
124 MGOB, 8, // UCSI DS MGO B
125 MGOC, 8, // UCSI DS MGO C
126 MGOD, 8, // UCSI DS MGO D
127 MGOE, 8, // UCSI DS MGO E
128 MGOF, 8, // UCSI DS MGO F
131 UCSV, 16, // UCSI DS Version
132 UCSD, 16, // UCSI DS Reserved
133 CCI0, 8, // UCSI DS CCI 0
134 CCI1, 8, // UCSI DS CCI 1
135 CCI2, 8, // UCSI DS CCI 2
136 CCI3, 8, // UCSI DS CCI 3
137 CTL0, 8, // UCSI DS Control 0
138 CTL1, 8, // UCSI DS Control 0
139 CTL2, 8, // UCSI DS Control 0
140 CTL3, 8, // UCSI DS Control 0
141 CTL4, 8, // UCSI DS Control 0
142 CTL5, 8, // UCSI DS Control 0
143 CTL6, 8, // UCSI DS Control 0
144 CTL7, 8, // UCSI DS Control 0
147 P0SD, 8, // PD Port Status DD
148 P0S4, 8, // PD Port Status 4
149 P0S5, 8, // PD Port Status 5
150 P0SE, 8, // PD Port Status E
151 P0SA, 8, // PD Port Status 10
152 P0SB, 8, // PD Port Status 11
155 STCD, 8, // Shutdown Code
156 EJ8R, 8, // EJ898A Need Reboot
157 EJ8E, 8, // EJ898A Error