From e196413bb745443610211c325623ba7cee7309e9 Mon Sep 17 00:00:00 2001 From: cepetr Date: Fri, 13 Dec 2024 12:02:26 +0100 Subject: [PATCH] feat(core): initialize powerclt in boardloader [no changelog] --- core/embed/projects/boardloader/main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/core/embed/projects/boardloader/main.c b/core/embed/projects/boardloader/main.c index 2741d850cf..222c7052c7 100644 --- a/core/embed/projects/boardloader/main.c +++ b/core/embed/projects/boardloader/main.c @@ -39,6 +39,10 @@ #include #include +#ifdef USE_POWERCTL +#include +#endif + #ifdef USE_PVD #include #endif @@ -75,6 +79,9 @@ static const uint8_t * const BOARDLOADER_KEYS[] = { }; static void drivers_init(void) { +#ifdef USE_POWERCTL + powerctl_init(); +#endif #ifdef USE_PVD pvd_init(); #endif @@ -96,8 +103,10 @@ static void drivers_deinit(void) { #ifdef FIXED_HW_DEINIT // TODO #endif - display_deinit(DISPLAY_JUMP_BEHAVIOR); +#ifdef USE_POWERCTL + powerctl_deinit(); +#endif ensure_compatible_settings(); }