Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | OperationRegion (ECF2, EmbeddedControl, 0x00, 0x100) |
| 4 | Field (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 Rhodes | c2c9618 | 2022-01-02 12:16:27 +0000 | [diff] [blame] | 19 | TPLE, 8, // Trackpad State |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 20 | 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 Rhodes | c2c9618 | 2022-01-02 12:16:27 +0000 | [diff] [blame] | 42 | FLKE, 8, // Function Lock State |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 43 | |
| 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 Rhodes | 111fec8 | 2024-03-18 10:24:04 +0000 | [diff] [blame^] | 96 | B1RP, 16, // Battery Remaining percentage |
Sean Rhodes | d4d321f | 2024-03-18 10:22:59 +0000 | [diff] [blame] | 97 | B1CC, 16, // Battery Cycle Count |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 98 | |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 99 | Offset(0x9d), |
| 100 | OPWE, 8, // OPM write to EC flag for UCSI |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 101 | |
| 102 | Offset(0xbf), |
| 103 | EJ8A, 8, // EJ898A Firmware Version |
| 104 | |
| 105 | Offset(0xc0), |
| 106 | MGI0, 8, // UCSI DS MGI 0 |
| 107 | MGI1, 8, // UCSI DS MGI 1 |
| 108 | MGI2, 8, // UCSI DS MGI 2 |
| 109 | MGI3, 8, // UCSI DS MGI 3 |
| 110 | MGI4, 8, // UCSI DS MGI 4 |
| 111 | MGI5, 8, // UCSI DS MGI 5 |
| 112 | MGI6, 8, // UCSI DS MGI 6 |
| 113 | MGI7, 8, // UCSI DS MGI 7 |
| 114 | MGI8, 8, // UCSI DS MGI 8 |
| 115 | MGI9, 8, // UCSI DS MGI 9 |
| 116 | MGIA, 8, // UCSI DS MGI A |
| 117 | MGIB, 8, // UCSI DS MGI B |
| 118 | MGIC, 8, // UCSI DS MGI C |
| 119 | MGID, 8, // UCSI DS MGI D |
| 120 | MGIE, 8, // UCSI DS MGI E |
| 121 | MGIF, 8, // UCSI DS MGI F |
| 122 | |
| 123 | Offset(0xd0), |
| 124 | MGO0, 8, // UCSI DS MGO 0 |
| 125 | MGO1, 8, // UCSI DS MGO 1 |
| 126 | MGO2, 8, // UCSI DS MGO 2 |
| 127 | MGO3, 8, // UCSI DS MGO 3 |
| 128 | MGO4, 8, // UCSI DS MGO 4 |
| 129 | MGO5, 8, // UCSI DS MGO 5 |
| 130 | MGO6, 8, // UCSI DS MGO 6 |
| 131 | MGO7, 8, // UCSI DS MGO 7 |
| 132 | MGO8, 8, // UCSI DS MGO 8 |
| 133 | MGO9, 8, // UCSI DS MGO 9 |
| 134 | MGOA, 8, // UCSI DS MGO A |
| 135 | MGOB, 8, // UCSI DS MGO B |
| 136 | MGOC, 8, // UCSI DS MGO C |
| 137 | MGOD, 8, // UCSI DS MGO D |
| 138 | MGOE, 8, // UCSI DS MGO E |
| 139 | MGOF, 8, // UCSI DS MGO F |
| 140 | |
| 141 | Offset(0xe0), |
| 142 | UCSV, 16, // UCSI DS Version |
| 143 | UCSD, 16, // UCSI DS Reserved |
| 144 | CCI0, 8, // UCSI DS CCI 0 |
| 145 | CCI1, 8, // UCSI DS CCI 1 |
| 146 | CCI2, 8, // UCSI DS CCI 2 |
| 147 | CCI3, 8, // UCSI DS CCI 3 |
| 148 | CTL0, 8, // UCSI DS Control 0 |
| 149 | CTL1, 8, // UCSI DS Control 0 |
| 150 | CTL2, 8, // UCSI DS Control 0 |
| 151 | CTL3, 8, // UCSI DS Control 0 |
| 152 | CTL4, 8, // UCSI DS Control 0 |
| 153 | CTL5, 8, // UCSI DS Control 0 |
| 154 | CTL6, 8, // UCSI DS Control 0 |
| 155 | CTL7, 8, // UCSI DS Control 0 |
| 156 | |
| 157 | Offset(0xf0), |
| 158 | P0SD, 8, // PD Port Status DD |
| 159 | P0S4, 8, // PD Port Status 4 |
| 160 | P0S5, 8, // PD Port Status 5 |
| 161 | P0SE, 8, // PD Port Status E |
| 162 | P0SA, 8, // PD Port Status 10 |
| 163 | P0SB, 8, // PD Port Status 11 |
| 164 | |
| 165 | Offset(0xfd), |
| 166 | STCD, 8, // Shutdown Code |
| 167 | EJ8R, 8, // EJ898A Need Reboot |
| 168 | EJ8E, 8, // EJ898A Error |
| 169 | } |