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
15 P0MV, 8, // PD Port 0 Major Version
16 P0SV, 8, // PD Port 0 Minor Version
17 P1MV, 8, // PD Port 1 Major Version
18 P1SV, 8, // PD Port 1 Minor Version
21 AUDI, 8, // Control Audio
22 TRAC, 8, // Trackpad Control
25 BSEC, 8, // Save to CMOS
26 KLSE, 8, // Keyboard Backlight State
27 TPLE, 8, // Trackpad State
28 FLKE, 8, // Function Lock State
29 FCLS, 8, // Ctrl Fn Reverse (Make Keyboard Apple-like)
30 MXCH, 8, // Max Charge Level
34 SHIP, 8, // Shipping Mode Flag
37 ECPS, 8, // AC & Battery Status
40 STEF, 8, // Sensor T Error F
43 SSKT, 8, // System Skin Temperature
45 TSHT, 8, // Thermal Sensor High Trip Point
46 TSLT, 8, // Thermal Sensor Low Trip Point
47 THER, 8, // Thermal Source
50 CPUT, 8, // PECI CPU Temperature
51 PMXT, 8, // PLMX Temperature
52 CHAR, 8, // Charger Temperature
55 LSTE, 8, // Lid Status
56 ECPS, 8, // AC & Battery Status
57 B1MN, 8, // Battery Model Number Code
58 B1SN, 16, // Battery Serial Number
59 B1DC, 16, // Battery Design Capacity
60 B1DV, 16, // Battery Design Voltage
61 B1FC, 16, // Battery Last Full Charge Capacity
62 B1TP, 16, // Battery Trip Point
63 B1ST, 8, // Battery State
64 B1PR, 16, // Battery Present Rate
65 B1RC, 16, // Battery Remaining Capacity
66 B1PV, 16, // Battery Present Voltage
67 BPRP, 8, // Battery Remaining Percentage
68 CPUT, 8, // PECI CPU Temperature
69 STCD, 8, // Shutdown Code
70 B1HL, 8, // Battery Health
71 CWFU, 8, // CW2015 Full
72 B1CC, 16, // Battery Cycle Count
75 MGO0, 8, // UCSI DS MGO 0
76 MGO1, 8, // UCSI DS MGO 1
77 MGO2, 8, // UCSI DS MGO 2
78 MGO3, 8, // UCSI DS MGO 3
79 MGO4, 8, // UCSI DS MGO 4
80 MGO5, 8, // UCSI DS MGO 5
81 MGO6, 8, // UCSI DS MGO 6
82 MGO7, 8, // UCSI DS MGO 7
83 MGO8, 8, // UCSI DS MGO 8
84 MGO9, 8, // UCSI DS MGO 9
85 MGOA, 8, // UCSI DS MGO A
86 MGOB, 8, // UCSI DS MGO B
87 MGOC, 8, // UCSI DS MGO C
88 MGOD, 8, // UCSI DS MGO D
89 MGOE, 8, // UCSI DS MGO E
90 MGOF, 8, // UCSI DS MGO F
93 UCSV, 16, // UCSI DS Version
94 UCSD, 16, // UCSI DS Reserved
95 CCI0, 8, // UCSI DS CCI 0
96 CCI1, 8, // UCSI DS CCI 1
97 CCI2, 8, // UCSI DS CCI 2
98 CCI3, 8, // UCSI DS CCI 3
99 CTL0, 8, // UCSI DS Control 0
100 CTL1, 8, // UCSI DS Control 0
101 CTL2, 8, // UCSI DS Control 0
102 CTL3, 8, // UCSI DS Control 0
103 CTL4, 8, // UCSI DS Control 0
104 CTL5, 8, // UCSI DS Control 0
105 CTL6, 8, // UCSI DS Control 0
106 CTL7, 8, // UCSI DS Control 0
109 MGI0, 8, // UCSI DS MGI 0
110 MGI1, 8, // UCSI DS MGI 1
111 MGI2, 8, // UCSI DS MGI 2
112 MGI3, 8, // UCSI DS MGI 3
113 MGI4, 8, // UCSI DS MGI 4
114 MGI5, 8, // UCSI DS MGI 5
115 MGI6, 8, // UCSI DS MGI 6
116 MGI7, 8, // UCSI DS MGI 7
117 MGI8, 8, // UCSI DS MGI 8
118 MGI9, 8, // UCSI DS MGI 9
119 MGIA, 8, // UCSI DS MGI A
120 MGIB, 8, // UCSI DS MGI B
121 MGIC, 8, // UCSI DS MGI C
122 MGID, 8, // UCSI DS MGI D
123 MGIE, 8, // UCSI DS MGI E
124 MGIF, 8, // UCSI DS MGI F
127 CCS1, 8, // Cross Point Switch Status 1
128 CCS2, 8, // Cross Point Switch Status 2
129 TCI1, 8, // TC Input 1 / TCHC Thermal Charge CMD [TODO, Confirm]
130 TCI2, 8, // TC Input 2 / TCHF Thermal Charge Flag [TODO, Confirm]
131 PDDT, 8, // PD Det [TODO, Confirm]
132 PDBD, 8, // B PD Det [TODO, Confirm]
133 ECWD, 16, // EC Wakeup Delay
134 ECWE, 8, // EC Wakeup Enable
135 PDV1, 8, // PD Vol [TODO, Confirm]
136 PDV2, 8, // B PD Vol [TODO, Confirm]
138 // Below are the Thunderbolt Offsets from the shared EC code. There aren't
139 // use for AMD boards but left for reference.
142 // TBTC, 8, // Thunderbolt Command
143 // TBTP, 8, // Thunderbolt Data Port
144 // TBTD, 8, // Thunderbolt Data
145 // TBTA, 8, // Thunderbolt Acknowledge
146 // TBTG, 16, // Thunderbolt DBG Data