diff options
author | Jens Arnold <amiconn@rockbox.org> | 2008-03-01 21:40:33 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2008-03-01 21:40:33 +0000 |
commit | 9876d91e351f457bac7f5ea3459dc12ef021078a (patch) | |
tree | 04d72e4d07817e8e9db935ab704f18c1e01edff8 | |
parent | 5daf9b043af1c0cb434dd5202f2f427db4e26f2e (diff) |
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.c | 4 |
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) 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(); } |