From 5bdb2fccdb9846e75e499593c6183346eca3e660 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sat, 5 Mar 2022 09:39:46 +0000 Subject: x1000: bootloader: refactor usb handling Drop init_usb(), instead initialize USB early in the main function so the hardware is placed into a known good state after a USB boot. The impact on boot time should be minimal. Change-Id: I9774ddfc2c27811363bdb0c54cb0e57b5ca59d73 --- bootloader/x1000/x1000bootloader.h | 1 + 1 file changed, 1 insertion(+) (limited to 'bootloader/x1000/x1000bootloader.h') diff --git a/bootloader/x1000/x1000bootloader.h b/bootloader/x1000/x1000bootloader.h index bb35cd3b78..60353e59fd 100644 --- a/bootloader/x1000/x1000bootloader.h +++ b/bootloader/x1000/x1000bootloader.h @@ -104,6 +104,7 @@ enum { }; int check_disk(bool wait); +void usb_mode(void); void recovery_menu(void) __attribute__((noreturn)); -- cgit v1.2.3