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 P0MV, 8, // PD Port 0 Major Version
12 P0SV, 8, // PD Port 0 Minor Version
13 P1MV, 8, // PD Port 1 Major Version
14 P1SV, 8, // PD Port 1 Minor Version
17 ECT0, 8, // EC Build Time 0
18 ECT1, 8, // EC Build Time 1
19 ECT2, 8, // EC Build Time 2
20 ECT3, 8, // EC Build Time 3
23 KLTE, 8, // Keyboard Backlight Timeout
24 FCLA, 8, // Fn Ctrl Reverse
25 TPLE, 8, // Trackpad State
26 FLKE, 8, // Function Lock State
27 KLSE, 8, // Keyboard Backlight State
28 KLBE, 8, // Keyboard Backlight Brightness
29 FSCH, 8, // Fast Charge
32 RCMD, 8, // Send EC command
33 RCST, 8, // Status of EC command
36 TSE1, 8, // Sensor 1 Temperature
37 TSE2, 8, // Sensor 2 Temperature
38 TSE3, 8, // Sensor 3 Temperature
41 TSE4, 4, // Sensor 4 Temperature
43 TSHT, 8, // Thermal Sensor High Trip Point
44 TSLT, 8, // Thermal Sensor Low Trip Point
45 THER, 8, // Thermal Source
46 CHRA, 16, // Charge Rate
49 CHAR, 8, // Charger Temperature
52 OSFG, 8, // OS Flag [TODO: Confirm]
53 LSTE, 1, // Lid Status
57 ECPS, 8, // AC & Battery status
58 B1MN, 8, // Battery Model Number Code
59 B1SN, 16, // Battery Serial Number
60 B1DC, 16, // Battery Design Capacity
61 B1DV, 16, // Battery Design Voltage
62 B1FC, 16, // Battery Last Full Charge Capacity
63 B1TP, 16, // Battery Trip Point
64 B1ST, 8, // Battery State
65 B1PR, 16, // Battery Present Rate
66 B1RC, 16, // Battery Remaining Capacity
67 B1PV, 16, // Battery Present Voltage
68 B1RP, 16, // Battery Remaining percentage
69 B1CC, 16, // Battery Cycle Count
72 OPWE, 8, // OPM write to EC flag for UCSI
75 BSNL, 8, // Battery Serial Number Low byte
76 BSNH, 8, // Battery Serial Number High Byte
77 BMN1, 8, // Battery Manufactory Name 1
78 BMN2, 8, // Battery Manufactory Name 2
79 BMN3, 8, // Battery Manufactory Name 3
80 BMN4, 8, // Battery Manufactory Name 4
81 BMN5, 8, // Battery Manufactory Name 5
82 BMN6, 8, // Battery Manufactory Name 6
83 BMN7, 8, // Battery Manufactory Name 7
84 BMN8, 8, // Battery Manufactory Name 8
85 BMN9, 8, // Battery Manufactory Name 9
86 BMNA, 8, // Battery Manufactory Name 10
87 BMNB, 8, // Battery Manufactory Name 11
88 BMNC, 8, // Battery Manufactory Name 12
89 BDN1, 8, // Battery Device Name 1
90 BDN2, 8, // Battery Device Name 2
91 BDN3, 8, // Battery Device Name 3
92 BDN4, 8, // Battery Device Name 4
93 BDN5, 8, // Battery Device Name 5
94 BDN6, 8, // Battery Device Name 6
95 BDN7, 8, // Battery Device Name 7
96 BDN8, 8, // Battery Device Name 8
97 BDN9, 8, // Battery Device Name 9
98 BDNA, 8, // Battery Device Name 10
99 BDNB, 8, // Battery Device Name 11
100 BDNC, 8, // Battery Device Name 12
101 BCT1, 8, // Battery Chemistry Type 1
102 BCT2, 8, // Battery Chemistry Type 2
103 BCT3, 8, // Battery Chemistry Type 3
104 BCT4, 8, // Battery Chemistry Type 4
105 BCT5, 8, // Battery Chemistry Type 5
106 BCT6, 8, // Battery Chemistry Type 6
109 UCSV, 16, // UCSI DS Version
110 UCSD, 16, // UCSI DS Reserved
111 CCI0, 8, // UCSI DS CCI 0
112 CCI1, 8, // UCSI DS CCI 1
113 CCI2, 8, // UCSI DS CCI 2
114 CCI3, 8, // UCSI DS CCI 3
115 CTL0, 8, // UCSI DS Control 0
116 CTL1, 8, // UCSI DS Control 0
117 CTL2, 8, // UCSI DS Control 0
118 CTL3, 8, // UCSI DS Control 0
119 CTL4, 8, // UCSI DS Control 0
120 CTL5, 8, // UCSI DS Control 0
121 CTL6, 8, // UCSI DS Control 0
122 CTL7, 8, // UCSI DS Control 0
125 MGI0, 8, // UCSI DS MGI 0
126 MGI1, 8, // UCSI DS MGI 1
127 MGI2, 8, // UCSI DS MGI 2
128 MGI3, 8, // UCSI DS MGI 3
129 MGI4, 8, // UCSI DS MGI 4
130 MGI5, 8, // UCSI DS MGI 5
131 MGI6, 8, // UCSI DS MGI 6
132 MGI7, 8, // UCSI DS MGI 7
133 MGI8, 8, // UCSI DS MGI 8
134 MGI9, 8, // UCSI DS MGI 9
135 MGIA, 8, // UCSI DS MGI A
136 MGIB, 8, // UCSI DS MGI B
137 MGIC, 8, // UCSI DS MGI C
138 MGID, 8, // UCSI DS MGI D
139 MGIE, 8, // UCSI DS MGI E
140 MGIF, 8, // UCSI DS MGI F
143 MGO0, 8, // UCSI DS MGO 0
144 MGO1, 8, // UCSI DS MGO 1
145 MGO2, 8, // UCSI DS MGO 2
146 MGO3, 8, // UCSI DS MGO 3
147 MGO4, 8, // UCSI DS MGO 4
148 MGO5, 8, // UCSI DS MGO 5
149 MGO6, 8, // UCSI DS MGO 6
150 MGO7, 8, // UCSI DS MGO 7
151 MGO8, 8, // UCSI DS MGO 8
152 MGO9, 8, // UCSI DS MGO 9
153 MGOA, 8, // UCSI DS MGO A
154 MGOB, 8, // UCSI DS MGO B
155 MGOC, 8, // UCSI DS MGO C
156 MGOD, 8, // UCSI DS MGO D
157 MGOE, 8, // UCSI DS MGO E
158 MGOF, 8, // UCSI DS MGO F