diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2008-03-26 10:37:17 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2008-03-26 10:37:17 +0000 |
commit | c724974872e71e6a21b1df4209587a6580c8de84 (patch) | |
tree | 350c1309d8cb3762421fe3b55fd902557cacbe2b /firmware | |
parent | be185a1eafa7ecdda6b4b994752491fa12a64ac9 (diff) | |
download | rockbox-c724974872e71e6a21b1df4209587a6580c8de84.tar.gz rockbox-c724974872e71e6a21b1df4209587a6580c8de84.zip |
Make the e200 bootloader able to load the OF again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16817 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/usb-fw-pp502x.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c index 008d42d991..ac5acbb71a 100644 --- a/firmware/target/arm/usb-fw-pp502x.c +++ b/firmware/target/arm/usb-fw-pp502x.c | |||
@@ -51,7 +51,10 @@ void usb_init_device(void) | |||
51 | udelay(100000); | 51 | udelay(100000); |
52 | 52 | ||
53 | /* disable USB-devices until USB is detected via GPIO */ | 53 | /* disable USB-devices until USB is detected via GPIO */ |
54 | #ifndef BOOTLOADER | ||
55 | /* Disabling USB0 in the bootloader makes the OF not load */ | ||
54 | DEV_EN &= ~DEV_USB0; | 56 | DEV_EN &= ~DEV_USB0; |
57 | #endif | ||
55 | DEV_EN &= ~DEV_USB1; | 58 | DEV_EN &= ~DEV_USB1; |
56 | DEV_INIT2 &= ~INIT_USB; | 59 | DEV_INIT2 &= ~INIT_USB; |
57 | 60 | ||
@@ -75,7 +78,10 @@ void usb_enable(bool on) | |||
75 | else { | 78 | else { |
76 | usb_core_exit(); | 79 | usb_core_exit(); |
77 | /* Disable USB devices */ | 80 | /* Disable USB devices */ |
81 | #ifndef BOOTLOADER | ||
82 | /* Disabling USB0 in the bootloader makes the OF not load */ | ||
78 | DEV_EN &=~ DEV_USB0; | 83 | DEV_EN &=~ DEV_USB0; |
84 | #endif | ||
79 | DEV_EN &=~ DEV_USB1; | 85 | DEV_EN &=~ DEV_USB1; |
80 | DEV_INIT2 &=~ INIT_USB; | 86 | DEV_INIT2 &=~ INIT_USB; |
81 | } | 87 | } |