summaryrefslogtreecommitdiff
path: root/firmware/export/config/sansaclipplus.h
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-17 20:53:25 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-17 20:53:25 +0000
commit88c55d7290b7c360075557c40fdf65ceeeaf0c4b (patch)
tree29cf685626bf8c01bb64ed9456850f62e4a57d7d /firmware/export/config/sansaclipplus.h
parent2ed7745ddefc084ca7030d48b251882e94fa2f9c (diff)
downloadrockbox-88c55d7290b7c360075557c40fdf65ceeeaf0c4b.tar.gz
rockbox-88c55d7290b7c360075557c40fdf65ceeeaf0c4b.zip
as3514/as3543 fixes
- Enable end of charge monitoring once, it doesn't need to be disabled - Acknowledge the first (wrong) end of charge interrupt on charger enable (this had been broken in r25299) - Centralize reads to ENRD* registers and cache the results when needed - on PP it is not needed because reads are atomic, we only check for end of charge when the charging, and for charger presence when discharging as3525v2 (using as3543) specifics - I got the datasheet today from AMS, thanks to them for being so fast and not require me to sign tons of papers! - USB detection now works on as3525v2 using the as3543. Clip+ won't reboot to OF yet, it needs mkamsboot support first (usbstack disabled) - Charging should work, the CHARGER register is at a different place, it is an extended PMU register -> use ascodec_read/write_charger() to access it - real interrupts are not used yet for ENRD, we get thousands of interrupts per second, apparently only limited by the i2c clock. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26116 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/config/sansaclipplus.h')
-rw-r--r--firmware/export/config/sansaclipplus.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/firmware/export/config/sansaclipplus.h b/firmware/export/config/sansaclipplus.h
index 79a7776b51..574c3ecc80 100644
--- a/firmware/export/config/sansaclipplus.h
+++ b/firmware/export/config/sansaclipplus.h
@@ -173,19 +173,15 @@
173 173
174#define USB_HANDLED_BY_OF 174#define USB_HANDLED_BY_OF
175 175
176#if 0 /* disabled since there is no USB driver */
177
178/* USB On-the-go */ 176/* USB On-the-go */
179#define CONFIG_USBOTG USBOTG_ARC 177#define CONFIG_USBOTG USBOTG_AS3525
180 178
181/* enable these for the experimental usb stack */ 179/* enable these for the experimental usb stack */
182#define HAVE_USBSTACK 180//#define HAVE_USBSTACK
183#define USB_VENDOR_ID 0x0781 181#define USB_VENDOR_ID 0x0781
184#define USB_PRODUCT_ID 0x74d1 182#define USB_PRODUCT_ID 0x74d1
185#endif /* BOOTLOADER */ 183#endif /* BOOTLOADER */
186 184
187#endif
188
189 185
190/* Virtual LED (icon) */ 186/* Virtual LED (icon) */
191#define CONFIG_LED LED_VIRTUAL 187#define CONFIG_LED LED_VIRTUAL