Commit 9b59e86
fwk: implement the battery extender feature
The purpose of this function is to automatically drop the battery max
charge voltage if the system is left plugged in to 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=marigold
BUG=https://app.clickup.com/t/86eq06zen
TEST=when timer expired, the charge voltage will reduce to 97% and
96% battery maximum charge voltage
TEST=charge voltage will recover when the user unplugs the adapter
for 30 minutes when the system in S0/S0ix.
Signed-off-by: Josh-Tsai <[email protected]>1 parent 514710a commit 9b59e86
File tree
5 files changed
+367
-0
lines changed- common
- include
- zephyr/program/framework
- include
- src
5 files changed
+367
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
482 | 488 | | |
483 | 489 | | |
484 | 490 | | |
| |||
1640 | 1646 | | |
1641 | 1647 | | |
1642 | 1648 | | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
1643 | 1658 | | |
1644 | 1659 | | |
1645 | 1660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
436 | 449 | | |
437 | 450 | | |
438 | 451 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
433 | 458 | | |
0 commit comments