diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-05 09:39:46 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-12 18:25:10 +0000 |
commit | 5bdb2fccdb9846e75e499593c6183346eca3e660 (patch) | |
tree | 2445901276eb7f1e11748b8c1d1134d29848b2a6 /bootloader/x1000/x1000bootloader.h | |
parent | 7554a49309fe31e69747c64caa28b4303270481b (diff) | |
download | rockbox-5bdb2fccdb9846e75e499593c6183346eca3e660.tar.gz rockbox-5bdb2fccdb9846e75e499593c6183346eca3e660.zip |
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
Diffstat (limited to 'bootloader/x1000/x1000bootloader.h')
-rw-r--r-- | bootloader/x1000/x1000bootloader.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
104 | }; | 104 | }; |
105 | 105 | ||
106 | int check_disk(bool wait); | 106 | int check_disk(bool wait); |
107 | void usb_mode(void); | ||
107 | 108 | ||
108 | void recovery_menu(void) __attribute__((noreturn)); | 109 | void recovery_menu(void) __attribute__((noreturn)); |
109 | 110 | ||