From c724974872e71e6a21b1df4209587a6580c8de84 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Wed, 26 Mar 2008 10:37:17 +0000 Subject: [PATCH] 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 --- firmware/target/arm/usb-fw-pp502x.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; }