diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-03-21 19:02:09 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2010-03-21 19:02:09 +0000 |
commit | 091fc75034945fe9c44ce4320231760a5c58b44e (patch) | |
tree | e722cf072f779d4109fb9e609cc1b72a1d7d16e9 /firmware | |
parent | bc8b9da4d0bbc31cce46036db44ae2150e8b1277 (diff) |
Update battery discharge curve and current consumption for iRiver h10 5GB. Thanks to Danny Attar for measuring.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25279 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/config/iriverh10_5gb.h | 5 | ||||
-rw-r--r-- | firmware/target/arm/iriver/h10/powermgmt-h10.c | 24 |
2 files changed, 17 insertions, 12 deletions
diff --git a/firmware/export/config/iriverh10_5gb.h b/firmware/export/config/iriverh10_5gb.h index bfc9b8ac2e..2d8124f972 100644 --- a/firmware/export/config/iriverh10_5gb.h +++ b/firmware/export/config/iriverh10_5gb.h @@ -113,6 +113,11 @@ /* define this if the unit can be powered or charged via USB */ #define HAVE_USB_POWER +/* define current usage levels */ +#define CURRENT_NORMAL 98 /* ~8.4h (820mAh) from bench with r25244 */ +#define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */ +#define CURRENT_RECORD 35 /* FIXME: this needs adjusting */ + #ifndef SIMULATOR /* Define this if you have a PortalPlayer PP5020 */ diff --git a/firmware/target/arm/iriver/h10/powermgmt-h10.c b/firmware/target/arm/iriver/h10/powermgmt-h10.c index eed8fbc5d2..9970c292bc 100644 --- a/firmware/target/arm/iriver/h10/powermgmt-h10.c +++ b/firmware/target/arm/iriver/h10/powermgmt-h10.c @@ -26,40 +26,40 @@ const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = { -#ifdef IRIVER_H10 +#if defined(IRIVER_H10) 3733 -#elif defined IRIVER_H10_5GB - 3695 +#elif defined(IRIVER_H10_5GB) + 3700 #endif }; const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = { -#ifdef IRIVER_H10 - 3627 -#elif defined IRIVER_H10_5GB +#if defined(IRIVER_H10) 3627 +#elif defined(IRIVER_H10_5GB) + 3600 #endif }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */ const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = { -#ifdef IRIVER_H10 +#if defined(IRIVER_H10) { 3733, 3772, 3821, 3840, 3869, 3917, 3985, 4034, 4072, 4140, 4198 } -#elif defined IRIVER_H10_5GB - { 3695, 3714, 3772, 3791, 3811, 3850, 3908, 3985, 4024, 4111, 4198 } +#elif defined(IRIVER_H10_5GB) + { 3700, 3800, 3850, 3880, 3910, 3960, 4000, 4070, 4120, 4210, 4280 } #endif }; /* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ const unsigned short percent_to_volt_charge[11] = { -#ifdef IRIVER_H10 +#if defined(IRIVER_H10) 3956, 3995, 4024, 4043, 4063, 4082, 4111, 4140, 4179, 4218, 4266 -#elif defined IRIVER_H10_5GB +#elif defined(IRIVER_H10_5GB) /* TODO: Not yet calibrated */ - 3850, 3888, 3927, 3966, 4024, 4063, 4111, 4150, 4198, 4237, 4286 + 3700, 3800, 3850, 3880, 3910, 3960, 4000, 4070, 4120, 4210, 4280 #endif }; |