diff options
author | Michael Chicoine <mc2739@gmail.com> | 2009-11-04 15:58:18 +0000 |
---|---|---|
committer | Michael Chicoine <mc2739@gmail.com> | 2009-11-04 15:58:18 +0000 |
commit | a06feaa7ecb010e6a6d85f49e6392f06f9f814a2 (patch) | |
tree | 1702f075d0024dd97a8ddfc195ba587f6114df14 /firmware | |
parent | fd8632fa37915008351899960335a67dbf93e4f2 (diff) |
Fix FS#10751 - Fuze freezes when using radio while charging
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23517 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/as3525/usb-drv-as3525.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/usb-drv-as3525.c b/firmware/target/arm/as3525/usb-drv-as3525.c index 4c178972ab..445cc72725 100644 --- a/firmware/target/arm/as3525/usb-drv-as3525.c +++ b/firmware/target/arm/as3525/usb-drv-as3525.c @@ -155,10 +155,19 @@ void usb_drv_init(void) sleep(1); //msleep(10) USB_DEV_CTRL &= ~0x400; /* clear soft disconnect */ - /* note : this pin might be Clip specific */ +#if defined(SANSA_CLIP) GPIOA_DIR |= (1<<6); GPIOA_PIN(6) = (1<<6); GPIOA_DIR &= ~(1<<6); /* restore direction for usb_detect() */ +#elif defined(SANSA_FUZE) || defined(SANSA_E200V2) + GPIOA_DIR |= (1<<3); + GPIOA_PIN(3) = (1<<3); + GPIOA_DIR &= ~(1<<3); /* restore direction for usb_detect() */ +#elif defined(SANSA_C200V2) + GPIOA_DIR |= (1<<1); + GPIOA_PIN(1) = (1<<1); + GPIOA_DIR &= ~(1<<1); /* restore direction for usb_detect() */ +#endif #if 0 /* linux */ USB_DEV_CFG |= (1<<17) /* csr programming */ |