diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2009-01-18 19:36:39 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2009-01-18 19:36:39 +0000 |
commit | 42567ccd74f4f2858a9ae028074f3279cbd2c2b2 (patch) | |
tree | bfba4a00e5f63ca3cbcf71de95ee463425ab8a0a /firmware/target/arm/ipod/powermgmt-ipod-pcf.c | |
parent | c9d000d16e709d415e6bcfd7e0ae06e7f8935c34 (diff) | |
download | rockbox-42567ccd74f4f2858a9ae028074f3279cbd2c2b2.tar.gz rockbox-42567ccd74f4f2858a9ae028074f3279cbd2c2b2.zip |
Commit battery discharge curve for the Ipod Photo. We still need one for the 4G and Mini.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19794 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/ipod/powermgmt-ipod-pcf.c')
-rw-r--r-- | firmware/target/arm/ipod/powermgmt-ipod-pcf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/powermgmt-ipod-pcf.c b/firmware/target/arm/ipod/powermgmt-ipod-pcf.c index ee5e73985f..703d1da833 100644 --- a/firmware/target/arm/ipod/powermgmt-ipod-pcf.c +++ b/firmware/target/arm/ipod/powermgmt-ipod-pcf.c | |||
@@ -59,6 +59,9 @@ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = | |||
59 | #elif defined IPOD_VIDEO | 59 | #elif defined IPOD_VIDEO |
60 | /* iPOD Video 30GB Li-Ion 400mAh, first approach based upon measurements */ | 60 | /* iPOD Video 30GB Li-Ion 400mAh, first approach based upon measurements */ |
61 | { 3450, 3670, 3710, 3750, 3790, 3830, 3870, 3930, 4010, 4100, 4180 }, | 61 | { 3450, 3670, 3710, 3750, 3790, 3830, 3870, 3930, 4010, 4100, 4180 }, |
62 | #elif defined IPOD_COLOR | ||
63 | /* iPOD Color 60GB Li-Ion, first approach based upon measurements */ | ||
64 | { 3500, 3676, 3729, 3755, 3778, 3805, 3847, 3919, 3961, 4071, 4109 }, | ||
62 | #else | 65 | #else |
63 | /* FIXME: calibrate value for other 3G+ ipods */ | 66 | /* FIXME: calibrate value for other 3G+ ipods */ |
64 | /* Table is "inherited" from iriver H100. */ | 67 | /* Table is "inherited" from iriver H100. */ |
@@ -106,6 +109,6 @@ void accessory_supply_set(bool enable) | |||
106 | /* Accessory voltage supply */ | 109 | /* Accessory voltage supply */ |
107 | pcf50605_write(PCF5060X_D2REGC1, 0x18); /* OFF */ | 110 | pcf50605_write(PCF5060X_D2REGC1, 0x18); /* OFF */ |
108 | } | 111 | } |
109 | 112 | ||
110 | } | 113 | } |
111 | #endif | 114 | #endif |