diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-17 20:53:25 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-17 20:53:25 +0000 |
commit | 88c55d7290b7c360075557c40fdf65ceeeaf0c4b (patch) | |
tree | 29cf685626bf8c01bb64ed9456850f62e4a57d7d /firmware/export/as3514.h | |
parent | 2ed7745ddefc084ca7030d48b251882e94fa2f9c (diff) | |
download | rockbox-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/as3514.h')
-rw-r--r-- | firmware/export/as3514.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h index df149c274a..6916e2fb4a 100644 --- a/firmware/export/as3514.h +++ b/firmware/export/as3514.h | |||
@@ -67,6 +67,10 @@ extern void audiohw_set_lineout_vol(int vol_l, int vol_r); | |||
67 | 67 | ||
68 | #define AS3514_PLLMODE 0x1d | 68 | #define AS3514_PLLMODE 0x1d |
69 | 69 | ||
70 | #ifdef HAVE_AS3543 | ||
71 | #define AS3543_CHARGER 0x19 /* PMU: sub register 1 (CHGVBUS1) */ | ||
72 | #endif | ||
73 | |||
70 | #define AS3514_SYSTEM 0x20 | 74 | #define AS3514_SYSTEM 0x20 |
71 | #define AS3514_CVDD_DCDC3 0x21 | 75 | #define AS3514_CVDD_DCDC3 0x21 |
72 | #define AS3514_CHARGER 0x22 | 76 | #define AS3514_CHARGER 0x22 |