summaryrefslogtreecommitdiff
path: root/firmware/drivers/pcf50605.c
AgeCommit message (Collapse)Author
2008-04-20Adding new setting to System Settings <Accessory Power Supply -- off by ↵Andree Buschmann
default). This setting can be used to enable/disable the power supply for accessories. With this commit implemented for iPods with PCF50605 power controller. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17193 a1c6a512-1295-4272-9138-f99709370657
2008-04-14Undo r17095. A bug report clearly showed this power supply is also needed ↵Andree Buschmann
for accessories on 5G/5.5G. A more sophisticated solution is needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17111 a1c6a512-1295-4272-9138-f99709370657
2008-04-13Further power saving for iPod Video (FS#8603). Do not enable D2REGC1 voltage ↵Andree Buschmann
for 5G/5.5G -- no changes for other iPods. Savings on a 5G/5.5G are about 1.5mA. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17095 a1c6a512-1295-4272-9138-f99709370657
2008-04-04Split out the PCF5060x register defines into a common header and create a ↵Rob Purchase
generic pcf50606.c using standard i2c read/writes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16966 a1c6a512-1295-4272-9138-f99709370657
2008-02-10Commit FS#8379 by Andree Buschmann. Disables much of the remaining unneeded ↵Michael Giacomelli
hardware on PP50xx targets (Ipods, Sansa, H10s, etc) resulting in a large savings in power and consequent increase in battery life. Results vary from target to target and from codec to codec, but we now approach the OF runtime on several PP devices. For now, leave base CPU clock at 30MHz, although further savings is possible with some codecs if clock is reduced. Additionally, fix battery capacity on c200 and use my measurements to improve runtime estimation for Sandisk targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16259 a1c6a512-1295-4272-9138-f99709370657
2007-11-26pcf50605_write_multiple must prelock driver or the series of bytes may be ↵Michael Sevakis
interrupted resulting in something you didn't intend. :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15807 a1c6a512-1295-4272-9138-f99709370657
2007-09-28Try to fix the case where Ipods would spuriously wake up even though no ↵Thom Johansen
alarm had been set. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14885 a1c6a512-1295-4272-9138-f99709370657
2007-02-28Add wake on alarm support for Ipods. Rename HAVE_ALARM_MOD to HAVE_ALARM_RTC ↵Thom Johansen
since it's not always a mod. Make Ipod PCF driver keep other flags in OOCC1 that have been set instead of overwriting them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12522 a1c6a512-1295-4272-9138-f99709370657
2007-01-27Oops - fix PortalPlayer buildsDaniel Ankers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12129 a1c6a512-1295-4272-9138-f99709370657
2006-10-27Renamed the ipod_i2c functions to the more appropriate pp_i2cDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11361 a1c6a512-1295-4272-9138-f99709370657
2006-05-02ipods - First implementation of pcf50605_init() function. This enables the ↵Dave Chapman
power-out in the Dock connector, which may help getting some accessories working - if they don't need to talk to the ipod via the Apple Accessory Protocol. Thanks to julius in IRC for testing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9860 a1c6a512-1295-4272-9138-f99709370657
2006-03-09Improve ipod i2c driver somewhat by at least taking advantage of the ↵Brandon Low
in-device addressing in the pcf50605, also switch to a 10bit resistive divider for the ipod battery reading, this is easily configurable if it needs changing, or even to become a user/runtime setting git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8980 a1c6a512-1295-4272-9138-f99709370657
2006-03-09Use an 8 bit ADC read for battery reading on ipod, that provides better than ↵Brandon Low
centivolt precision any way, also enable charging, it seems to detect fine when charging by USB git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8966 a1c6a512-1295-4272-9138-f99709370657
2006-03-05Basic battery monitoring for ipod 5g, should work on other ipods as well, ↵Brandon Low
but needs testing and stuff. Also improved the RTC driver and moved it to where it belongs, and interrupt protected a bunch of possibly broken i2c. Also start preparing code for ipod charge monitoring. Note: on the 5g, this takes up enough processor time to increase skippiness noticeably in WPS. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8911 a1c6a512-1295-4272-9138-f99709370657
2006-02-05More iPod 3G code from Seven Le MesleDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8582 a1c6a512-1295-4272-9138-f99709370657
2005-12-21Put the ipod into standby mode on shutdown. This is untested on the 5g, but ↵Dave Chapman
should work... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8275 a1c6a512-1295-4272-9138-f99709370657
2005-12-19Correctly attribute Bernard Leach as the (C) holder for code taken from ↵Dave Chapman
ipodlinux. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8264 a1c6a512-1295-4272-9138-f99709370657
2005-12-11iPod: Cleanup of i2c code and addition of RTC driverDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8219 a1c6a512-1295-4272-9138-f99709370657