1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-15 02:48:11 +00:00

feat(core): initialize powerclt in boardloader

[no changelog]
This commit is contained in:
cepetr 2024-12-13 12:02:26 +01:00 committed by TychoVrahe
parent 3bc13b5707
commit e196413bb7

View File

@ -39,6 +39,10 @@
#include <util/option_bytes.h> #include <util/option_bytes.h>
#include <util/rsod.h> #include <util/rsod.h>
#ifdef USE_POWERCTL
#include <sys/powerctl.h>
#endif
#ifdef USE_PVD #ifdef USE_PVD
#include <sys/pvd.h> #include <sys/pvd.h>
#endif #endif
@ -75,6 +79,9 @@ static const uint8_t * const BOARDLOADER_KEYS[] = {
}; };
static void drivers_init(void) { static void drivers_init(void) {
#ifdef USE_POWERCTL
powerctl_init();
#endif
#ifdef USE_PVD #ifdef USE_PVD
pvd_init(); pvd_init();
#endif #endif
@ -96,8 +103,10 @@ static void drivers_deinit(void) {
#ifdef FIXED_HW_DEINIT #ifdef FIXED_HW_DEINIT
// TODO // TODO
#endif #endif
display_deinit(DISPLAY_JUMP_BEHAVIOR); display_deinit(DISPLAY_JUMP_BEHAVIOR);
#ifdef USE_POWERCTL
powerctl_deinit();
#endif
ensure_compatible_settings(); ensure_compatible_settings();
} }