Sean Rhodes | b5fbb55 | 2022-03-09 09:02:17 +0000 | [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 | 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 |
| 15 | |
| 16 | Offset(0x0c), |
| 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 |
| 21 | |
| 22 | Offset(0x12), |
| 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 |
Sean Rhodes | 8de7c01 | 2022-07-31 17:35:28 +0100 | [diff] [blame] | 29 | FSCH, 8, // Fast Charge |
Sean Rhodes | b5fbb55 | 2022-03-09 09:02:17 +0000 | [diff] [blame] | 30 | |
| 31 | Offset(0x20), |
| 32 | RCMD, 8, // Send EC command |
| 33 | RCST, 8, // Status of EC command |
| 34 | |
| 35 | Offset(0x60), |
| 36 | TSE1, 8, // Sensor 1 Temperature |
| 37 | TSE2, 8, // Sensor 2 Temperature |
| 38 | TSE3, 8, // Sensor 3 Temperature |
| 39 | |
| 40 | Offset(0x63), |
| 41 | TSE4, 4, // Sensor 4 Temperature |
| 42 | SENF, 8, // Sensor F |
| 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 |
| 47 | |
| 48 | Offset(0x72), |
| 49 | CHAR, 8, // Charger Temperature |
| 50 | |
| 51 | Offset(0x7e), |
| 52 | OSFG, 8, // OS Flag [TODO: Confirm] |
| 53 | LSTE, 1, // Lid Status |
| 54 | , 7, // Reserved |
| 55 | |
| 56 | Offset(0x80), |
| 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 |
Sean Rhodes | d57e57e | 2024-03-18 10:15:21 +0000 | [diff] [blame] | 68 | BPRP, 16, // Battery Remaining percentage |
Sean Rhodes | b5fbb55 | 2022-03-09 09:02:17 +0000 | [diff] [blame] | 69 | |
Sean Rhodes | b5fbb55 | 2022-03-09 09:02:17 +0000 | [diff] [blame] | 70 | Offset(0x9d), |
| 71 | OPWE, 8, // OPM write to EC flag for UCSI |
Sean Rhodes | b5fbb55 | 2022-03-09 09:02:17 +0000 | [diff] [blame] | 72 | |
| 73 | Offset(0xa0), |
| 74 | BSNL, 8, // Battery Serial Number Low byte |
| 75 | BSNH, 8, // Battery Serial Number High Byte |
| 76 | BMN1, 8, // Battery Manufactory Name 1 |
| 77 | BMN2, 8, // Battery Manufactory Name 2 |
| 78 | BMN3, 8, // Battery Manufactory Name 3 |
| 79 | BMN4, 8, // Battery Manufactory Name 4 |
| 80 | BMN5, 8, // Battery Manufactory Name 5 |
| 81 | BMN6, 8, // Battery Manufactory Name 6 |
| 82 | BMN7, 8, // Battery Manufactory Name 7 |
| 83 | BMN8, 8, // Battery Manufactory Name 8 |
| 84 | BMN9, 8, // Battery Manufactory Name 9 |
| 85 | BMNA, 8, // Battery Manufactory Name 10 |
| 86 | BMNB, 8, // Battery Manufactory Name 11 |
| 87 | BMNC, 8, // Battery Manufactory Name 12 |
| 88 | BDN1, 8, // Battery Device Name 1 |
| 89 | BDN2, 8, // Battery Device Name 2 |
| 90 | BDN3, 8, // Battery Device Name 3 |
| 91 | BDN4, 8, // Battery Device Name 4 |
| 92 | BDN5, 8, // Battery Device Name 5 |
| 93 | BDN6, 8, // Battery Device Name 6 |
| 94 | BDN7, 8, // Battery Device Name 7 |
| 95 | BDN8, 8, // Battery Device Name 8 |
| 96 | BDN9, 8, // Battery Device Name 9 |
| 97 | BDNA, 8, // Battery Device Name 10 |
| 98 | BDNB, 8, // Battery Device Name 11 |
| 99 | BDNC, 8, // Battery Device Name 12 |
| 100 | BCT1, 8, // Battery Chemistry Type 1 |
| 101 | BCT2, 8, // Battery Chemistry Type 2 |
| 102 | BCT3, 8, // Battery Chemistry Type 3 |
| 103 | BCT4, 8, // Battery Chemistry Type 4 |
| 104 | BCT5, 8, // Battery Chemistry Type 5 |
| 105 | BCT6, 8, // Battery Chemistry Type 6 |
| 106 | |
| 107 | Offset(0xc0), |
| 108 | UCSV, 16, // UCSI DS Version |
| 109 | UCSD, 16, // UCSI DS Reserved |
| 110 | CCI0, 8, // UCSI DS CCI 0 |
| 111 | CCI1, 8, // UCSI DS CCI 1 |
| 112 | CCI2, 8, // UCSI DS CCI 2 |
| 113 | CCI3, 8, // UCSI DS CCI 3 |
| 114 | CTL0, 8, // UCSI DS Control 0 |
| 115 | CTL1, 8, // UCSI DS Control 0 |
| 116 | CTL2, 8, // UCSI DS Control 0 |
| 117 | CTL3, 8, // UCSI DS Control 0 |
| 118 | CTL4, 8, // UCSI DS Control 0 |
| 119 | CTL5, 8, // UCSI DS Control 0 |
| 120 | CTL6, 8, // UCSI DS Control 0 |
| 121 | CTL7, 8, // UCSI DS Control 0 |
| 122 | |
| 123 | Offset(0xd0), |
| 124 | MGI0, 8, // UCSI DS MGI 0 |
| 125 | MGI1, 8, // UCSI DS MGI 1 |
| 126 | MGI2, 8, // UCSI DS MGI 2 |
| 127 | MGI3, 8, // UCSI DS MGI 3 |
| 128 | MGI4, 8, // UCSI DS MGI 4 |
| 129 | MGI5, 8, // UCSI DS MGI 5 |
| 130 | MGI6, 8, // UCSI DS MGI 6 |
| 131 | MGI7, 8, // UCSI DS MGI 7 |
| 132 | MGI8, 8, // UCSI DS MGI 8 |
| 133 | MGI9, 8, // UCSI DS MGI 9 |
| 134 | MGIA, 8, // UCSI DS MGI A |
| 135 | MGIB, 8, // UCSI DS MGI B |
| 136 | MGIC, 8, // UCSI DS MGI C |
| 137 | MGID, 8, // UCSI DS MGI D |
| 138 | MGIE, 8, // UCSI DS MGI E |
| 139 | MGIF, 8, // UCSI DS MGI F |
| 140 | |
| 141 | Offset(0xe0), |
| 142 | MGO0, 8, // UCSI DS MGO 0 |
| 143 | MGO1, 8, // UCSI DS MGO 1 |
| 144 | MGO2, 8, // UCSI DS MGO 2 |
| 145 | MGO3, 8, // UCSI DS MGO 3 |
| 146 | MGO4, 8, // UCSI DS MGO 4 |
| 147 | MGO5, 8, // UCSI DS MGO 5 |
| 148 | MGO6, 8, // UCSI DS MGO 6 |
| 149 | MGO7, 8, // UCSI DS MGO 7 |
| 150 | MGO8, 8, // UCSI DS MGO 8 |
| 151 | MGO9, 8, // UCSI DS MGO 9 |
| 152 | MGOA, 8, // UCSI DS MGO A |
| 153 | MGOB, 8, // UCSI DS MGO B |
| 154 | MGOC, 8, // UCSI DS MGO C |
| 155 | MGOD, 8, // UCSI DS MGO D |
| 156 | MGOE, 8, // UCSI DS MGO E |
| 157 | MGOF, 8, // UCSI DS MGO F |
| 158 | } |