summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-03-01 21:40:33 +0000
committerJens Arnold <amiconn@rockbox.org>2008-03-01 21:40:33 +0000
commit9876d91e351f457bac7f5ea3459dc12ef021078a (patch)
tree04d72e4d07817e8e9db935ab704f18c1e01edff8
parent5daf9b043af1c0cb434dd5202f2f427db4e26f2e (diff)
downloadrockbox-9876d91e351f457bac7f5ea3459dc12ef021078a.tar.gz
rockbox-9876d91e351f457bac7f5ea3459dc12ef021078a.zip
Minor cleanup and a clarification.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16468 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/usb-fw-pp502x.c4
1 files changed, 1 insertions, 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)
48 48
49 while ((inl(0x70000028) & 0x80) == 0); 49 while ((inl(0x70000028) & 0x80) == 0);
50 outl(inl(0x70000028) | 0x2, 0x70000028); 50 outl(inl(0x70000028) | 0x2, 0x70000028);
51 udelay(0x186A0); 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 DEV_EN &= ~DEV_USB0; 54 DEV_EN &= ~DEV_USB0;
@@ -68,9 +68,7 @@ void usb_enable(bool on)
68 if (on) { 68 if (on) {
69 /* if USB is detected, re-enable the USB-devices, otherwise make sure it's disabled */ 69 /* if USB is detected, re-enable the USB-devices, otherwise make sure it's disabled */
70 DEV_EN |= DEV_USB0; 70 DEV_EN |= DEV_USB0;
71 DEV_RS &=~DEV_USB0;
72 DEV_EN |= DEV_USB1; 71 DEV_EN |= DEV_USB1;
73 DEV_RS &=~DEV_USB1;
74 DEV_INIT2 |= INIT_USB; 72 DEV_INIT2 |= INIT_USB;
75 usb_core_init(); 73 usb_core_init();
76 } 74 }