Commit 73f1196
fwk: implement the battery extender feature
cherry pick Google CLs for battery exceeded
list:
[Update EC_CMD_CHARGE_CONTROL to version 2](https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2929340)
[chgstv2: Add unit test for battery sustainer](https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2987734/4)
[chgstv2: Add battery sustainer](https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2929347)
[chgstv2: Refactor charger_discharge_on_ac](https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2986848)
manual add CLs
[charge_state: Add EC_CMD_CHARGE_CONTROL V3](https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4824703)
fwk CLs:
[fwk: override the display charge value for Windows system](FrameworkComputer/ec#1042)
The purpose of this function is to automatically drop the battery max charge voltage if the system is left plugged into AC for a long time to preserve battery life.
When the timer is exceeded the battery charge voltage should be reduced to 4.35V/cell. Two additional days after the timer has exceeded, the battery charge voltage shall be reduced to 4.3V/cell.
The timer should reset to 0 days any time the system is in S0/S0ix and not attached to AC for 30 minutes or longer.
BRANCH=fwk-hx20-hx30-4410
BUG=https://app.clickup.com/t/86eq06zen
TEST=zmake build hx30 pass
TEST=trigger extender timer check chg ctl mode is discharge(2) battery also has discharge
after battery percentage trace to upper value chg ctl mode change to IDLE
Signed-off-by: LeoCX_Tsai <[email protected]>1 parent b8d7b29 commit 73f1196
File tree
11 files changed
+509
-42
lines changed- baseboard/fwk
- common
- include
- test
- util
11 files changed
+509
-42
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
18 | 46 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
215 | 230 | | |
216 | 231 | | |
217 | 232 | | |
| |||
248 | 263 | | |
249 | 264 | | |
250 | 265 | | |
251 | | - | |
| 266 | + | |
252 | 267 | | |
253 | 268 | | |
254 | 269 | | |
| |||
314 | 329 | | |
315 | 330 | | |
316 | 331 | | |
| 332 | + | |
| 333 | + | |
317 | 334 | | |
318 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
319 | 342 | | |
320 | 343 | | |
321 | 344 | | |
322 | 345 | | |
323 | 346 | | |
324 | 347 | | |
325 | | - | |
| 348 | + | |
326 | 349 | | |
327 | 350 | | |
328 | 351 | | |
329 | | - | |
| 352 | + | |
330 | 353 | | |
331 | | - | |
| 354 | + | |
| 355 | + | |
332 | 356 | | |
333 | | - | |
| 357 | + | |
| 358 | + | |
334 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
335 | 363 | | |
336 | 364 | | |
337 | 365 | | |
| |||
445 | 473 | | |
446 | 474 | | |
447 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
448 | 479 | | |
449 | 480 | | |
450 | 481 | | |
| |||
0 commit comments