From 9876d91e351f457bac7f5ea3459dc12ef021078a Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 1 Mar 2008 21:40:33 +0000 Subject: Minor cleanup and a clarification. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16468 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/usb-fw-pp502x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c index aa557cbbeb..8d3237c0f5 100644 --- a/firmware/target/arm/usb-fw-pp502x.c +++ b/firmware/target/arm/usb-fw-pp502x.c @@ -48,7 +48,7 @@ void usb_init_device(void) while ((inl(0x70000028) & 0x80) == 0); outl(inl(0x70000028) | 0x2, 0x70000028); - udelay(0x186A0); + udelay(100000); /* disable USB-devices until USB is detected via GPIO */ DEV_EN &= ~DEV_USB0; @@ -68,9 +68,7 @@ void usb_enable(bool on) if (on) { /* if USB is detected, re-enable the USB-devices, otherwise make sure it's disabled */ DEV_EN |= DEV_USB0; - DEV_RS &=~DEV_USB0; DEV_EN |= DEV_USB1; - DEV_RS &=~DEV_USB1; DEV_INIT2 |= INIT_USB; usb_core_init(); } -- cgit v1.2.3