mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-08-02 11:58:32 +00:00
fix(core/prodtest): fix power management initialization in prodtest
[no changelog]
This commit is contained in:
parent
c89ca35bbc
commit
7fa4e2d510
@ -193,6 +193,9 @@ static bool g_rgbled_control_disabled = false;
|
|||||||
void prodtest_disable_rgbled_control(void) { g_rgbled_control_disabled = true; }
|
void prodtest_disable_rgbled_control(void) { g_rgbled_control_disabled = true; }
|
||||||
|
|
||||||
static void drivers_init(void) {
|
static void drivers_init(void) {
|
||||||
|
#ifdef USE_BACKUP_RAM
|
||||||
|
backup_ram_init();
|
||||||
|
#endif
|
||||||
#ifdef USE_POWER_MANAGER
|
#ifdef USE_POWER_MANAGER
|
||||||
pm_init(true);
|
pm_init(true);
|
||||||
#endif
|
#endif
|
||||||
@ -211,9 +214,6 @@ static void drivers_init(void) {
|
|||||||
#ifdef USE_SD_CARD
|
#ifdef USE_SD_CARD
|
||||||
sdcard_init();
|
sdcard_init();
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_BACKUP_RAM
|
|
||||||
backup_ram_init();
|
|
||||||
#endif
|
|
||||||
#ifdef USE_BUTTON
|
#ifdef USE_BUTTON
|
||||||
button_init();
|
button_init();
|
||||||
#endif
|
#endif
|
||||||
@ -261,9 +261,6 @@ int main(void) {
|
|||||||
&g_cli, &_prodtest_cli_cmd_section_start,
|
&g_cli, &_prodtest_cli_cmd_section_start,
|
||||||
&_prodtest_cli_cmd_section_end - &_prodtest_cli_cmd_section_start);
|
&_prodtest_cli_cmd_section_end - &_prodtest_cli_cmd_section_start);
|
||||||
|
|
||||||
pm_turn_on();
|
|
||||||
pm_charging_enable();
|
|
||||||
|
|
||||||
#ifdef USE_OPTIGA
|
#ifdef USE_OPTIGA
|
||||||
optiga_init();
|
optiga_init();
|
||||||
optiga_open_application();
|
optiga_open_application();
|
||||||
|
Loading…
Reference in New Issue
Block a user