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
12 FRMF, 8, // Force Mirror Flag
13 PDMV, 8, // PD Major Version
14 PDSV, 8, // PD Minor Version
17 CPUT, 8, // CPU Temperature
20 AUDI, 8, // Control Audio
21 TPLE, 8, // Trackpad State
22 PSTC, 8, // Current P State
23 PSTL, 8, // Last P State
27 FCLA, 8, // Fn Ctrl Reverse
30 WIFI, 8, // WIFI Enable
33 KLMT, 8, // Keyboard Matrix
34 BFCP, 8, // Battery Full Charge Percentage
38 KLTE, 8, // Keyboard Backlight Timeout
39 KLSE, 8, // Keyboard Backlight State
40 KLBE, 8, // Keyboard Backlight Brightness
43 SHIP, 8, // Shipping Mode Flag
45 STCD, 8, // Shutdown Code
48 CPUF, 8, // CPU Family
50 CPUS, 8, // CPU Stepping
53 OEMM, 8, // OEM Charger Mode
54 OEMF, 8, // OEM Charger Mode F
57 FLKE, 8, // Function Lock State
60 P0MV, 8, // PD Port 0 Major Version
61 P0SV, 8, // PD Port 0 Minor Version
62 P1MV, 8, // PD Port 1 Major Version
63 P1SV, 8, // PD Port 1 Minor Version
64 USMA, 8, // USCI Major Revision
65 USMI, 8, // USCI Minor Revision
66 USRV, 8, // USCI Revision Version
69 LSTE, 1, // Lid Status
73 ECPS, 8, // AC & Battery status
74 B1MN, 8, // Battery Model Number Code
75 B1SN, 16, // Battery Serial Number
76 B1DC, 16, // Battery Design Capacity
77 B1DV, 16, // Battery Design Voltage
78 B1FC, 16, // Battery Last Full Charge Capacity
79 B1TP, 16, // Battery Trip Point
80 B1ST, 8, // Battery State
81 B1PR, 16, // Battery Present Rate
82 B1RC, 16, // Battery Remaining Capacity
83 B1PV, 16, // Battery Present Voltage
84 BPRP, 8, // Battery Remaining percentage
88 UCSV, 16, // UCSI DS Version
89 UCSD, 16, // UCSI DS Reserved
90 CCI0, 8, // UCSI DS CCI 0
91 CCI1, 8, // UCSI DS CCI 1
92 CCI2, 8, // UCSI DS CCI 2
93 CCI3, 8, // UCSI DS CCI 3
94 CTL0, 8, // UCSI DS Control 0
95 CTL1, 8, // UCSI DS Control 0
96 CTL2, 8, // UCSI DS Control 0
97 CTL3, 8, // UCSI DS Control 0
98 CTL4, 8, // UCSI DS Control 0
99 CTL5, 8, // UCSI DS Control 0
100 CTL6, 8, // UCSI DS Control 0
101 CTL7, 8, // UCSI DS Control 0
104 MGI0, 8, // UCSI DS MGI 0
105 MGI1, 8, // UCSI DS MGI 1
106 MGI2, 8, // UCSI DS MGI 2
107 MGI3, 8, // UCSI DS MGI 3
108 MGI4, 8, // UCSI DS MGI 4
109 MGI5, 8, // UCSI DS MGI 5
110 MGI6, 8, // UCSI DS MGI 6
111 MGI7, 8, // UCSI DS MGI 7
112 MGI8, 8, // UCSI DS MGI 8
113 MGI9, 8, // UCSI DS MGI 9
114 MGIA, 8, // UCSI DS MGI A
115 MGIB, 8, // UCSI DS MGI B
116 MGIC, 8, // UCSI DS MGI C
117 MGID, 8, // UCSI DS MGI D
118 MGIE, 8, // UCSI DS MGI E
119 MGIF, 8, // UCSI DS MGI F
122 MGO0, 8, // UCSI DS MGO 0
123 MGO1, 8, // UCSI DS MGO 1
124 MGO2, 8, // UCSI DS MGO 2
125 MGO3, 8, // UCSI DS MGO 3
126 MGO4, 8, // UCSI DS MGO 4
127 MGO5, 8, // UCSI DS MGO 5
128 MGO6, 8, // UCSI DS MGO 6
129 MGO7, 8, // UCSI DS MGO 7
130 MGO8, 8, // UCSI DS MGO 8
131 MGO9, 8, // UCSI DS MGO 9
132 MGOA, 8, // UCSI DS MGO A
133 MGOB, 8, // UCSI DS MGO B
134 MGOC, 8, // UCSI DS MGO C
135 MGOD, 8, // UCSI DS MGO D
136 MGOE, 8, // UCSI DS MGO E
137 MGOF, 8, // UCSI DS MGO F
140 ECWD, 16, // EC Wakeup Delay
141 ECWE, 8, // EC Wakeup Enable
144 TBTC, 8, // Thunderbolt Command
145 TBTP, 8, // Thunderbolt Data Port
146 TBTD, 8, // Thunderbolt Data
147 TBTA, 8, // Thunderbolt Acknowledge
148 TBTG, 16, // Thunderbolt DBG Data