summaryrefslogtreecommitdiff
path: root/firmware/target/arm/usb-fw-pp502x.c
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2008-03-26 10:37:17 +0000
committerBarry Wardell <rockbox@barrywardell.net>2008-03-26 10:37:17 +0000
commitc724974872e71e6a21b1df4209587a6580c8de84 (patch)
tree350c1309d8cb3762421fe3b55fd902557cacbe2b /firmware/target/arm/usb-fw-pp502x.c
parentbe185a1eafa7ecdda6b4b994752491fa12a64ac9 (diff)
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/target/arm/usb-fw-pp502x.c')
-rw-r--r--firmware/target/arm/usb-fw-pp502x.c6
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)
udelay(100000);
/* disable USB-devices until USB is detected via GPIO */
+#ifndef BOOTLOADER
+ /* Disabling USB0 in the bootloader makes the OF not load */
DEV_EN &= ~DEV_USB0;
+#endif
DEV_EN &= ~DEV_USB1;
DEV_INIT2 &= ~INIT_USB;
@@ -75,7 +78,10 @@ void usb_enable(bool on)
else {
usb_core_exit();
/* Disable USB devices */
+#ifndef BOOTLOADER
+ /* Disabling USB0 in the bootloader makes the OF not load */
DEV_EN &=~ DEV_USB0;
+#endif
DEV_EN &=~ DEV_USB1;
DEV_INIT2 &=~ INIT_USB;
}