1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-06-26 18:02:35 +00:00
Commit Graph

15227 Commits

Author SHA1 Message Date
tychovrahe
33b8b2c8f7 fix(core): fix kernel power manager initialization
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
b634eaca91 feat(core/bootloader): adjust boot sequence for battery devices
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
a4eaf4dc27 feat(core): respect manufacturing mode in power on sequence
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
2e23349419 feat(core/prodtest): limit charging in prodtest to 70% SOC
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
278a09f4c5 fix(core): improve robustness of device power on check
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
e01edaad4a feat(core/prodtest): add fuel gauge to prodtest welcome screen
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
26dc39b941 feat(core/bootloader): add power management to bootloader
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
c63ff3bf44 feat(core): implement reboot command to bypass button check
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
7fa4e2d510 fix(core/prodtest): fix power management initialization in prodtest
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
c89ca35bbc feat(core): event polling for power manager
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
e3be94d599 feat(core): add pm_get_events syscall
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
6e82c2415f refactor(core): refactor power manager syscalls
[no changelog]
2025-05-30 14:04:45 +02:00
tychovrahe
0cd38186bf fix(core): adjust to powerctl->power manager transition
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
48ef573649 refactor(core): remove recursion from power manager state machine automat
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
a530fb2c76 feat(core): add pm_charging_set_max_current function to API
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
e1e6d77ba5 feat(core): update fuel gauge parameters + agressive regions at charging profiles boundry
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
56c55cf69d feat(core): add charging profiles forced bounderies [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
b4fc523711 fix(core): fix power_manager dependencies
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
0e228caac1 feat(core) add prodtest precharge test [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
46272a854e fix(core) fuel gauge not updated while charging is IDLE.
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
4b9fb839cd refactor(core): split pmic as a separate feature
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
58e31be4ec feat(core): add power_state into prodtest pm_report
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
892a1b8171 style(core): fix cstyles [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
a3ab75b5aa fix(core): fix prodtest to not hibernate with external power source [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
f31e190795 feat(core): disclose full power manager state machine to app [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
6ba574cd82 feat(core): add pm stabilization in init function [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
f050136abb feat(core): store fuel gauge covariance into backup ram [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
ac65d1f59d chore(core): put soc recovery inside the pm_init [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
f6bb7684cc chore(core): add machine readable output of pm report [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
b3e76e557e fix(core): fix async pmic variable reading [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
17031852cf feat(core): add pm_wait_until_active function [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
704bf3ed7c feat(core): improve power_manager backup ram data check [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
7acac1a0fd fix(core): remove reduntant store to backup ram function [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
63b374067c fix(core) fix fuel gauge sampling period calculation [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
3beebe5956 fix(core): remove ULTRA_POWER_SAVE and STARTUP_REJECTED states, improve battery low state detection [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
19948372c7 feat(core): extend power manager backup ram data with battery critical flag
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
8e7d5a2a01 chore(core): unify prodtests under power_manager
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
3795ba9fc4 fix(core): fix wakeup flags in nrf lib [no changelog] 2025-05-30 14:04:45 +02:00
kopecdav
39c5c9b068 feat(core): remove powerctl, transfer all subordinate libraries into power manager
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
68d26f0c79 fix(core): fix styles
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
79f53f0c45 feat(core): add store_data_to_backup function
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
32e28246c7 feat(core): introduce power_control.c with hibernate function
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
ae92ae09d5 feat(core): integrate data recovery from backup ram
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
e1503eee53 fix(core): add power_manager into the prodtest
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
ebbe158dea feat(core): change event/state report structure
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
737526f431 feat(core): remove error event
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
5dd7fe334a refactor(core): rename REPORT_LOW_BATTERY state to REJECT_STARTUP
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
614528acb6 refactor(core): refactor pm prodtest to new namespace, add watch test
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
9c8db0bcba refactor(core): rename power_manager items to shorter pm
[no changelog]
2025-05-30 14:04:45 +02:00
kopecdav
0fc4ad037e feat(core): Add power manager watch prodtest [no changelog] 2025-05-30 14:04:45 +02:00