summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/CREDITS1
-rw-r--r--firmware/export/config/iriverh10_5gb.h5
-rw-r--r--firmware/target/arm/iriver/h10/powermgmt-h10.c24
3 files changed, 18 insertions, 12 deletions
diff --git a/docs/CREDITS b/docs/CREDITS
index 0bf49acb18..38a2eedc20 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -533,6 +533,7 @@ Kevin Schoedel
533Jens Theeß 533Jens Theeß
534Alexey Nemtsev 534Alexey Nemtsev
535Pascal Below 535Pascal Below
536Danny Attar
536 537
537The libmad team 538The libmad team
538The wavpack team 539The wavpack team
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 @@
113/* define this if the unit can be powered or charged via USB */ 113/* define this if the unit can be powered or charged via USB */
114#define HAVE_USB_POWER 114#define HAVE_USB_POWER
115 115
116/* define current usage levels */
117#define CURRENT_NORMAL 98 /* ~8.4h (820mAh) from bench with r25244 */
118#define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */
119#define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
120
116#ifndef SIMULATOR 121#ifndef SIMULATOR
117 122
118/* Define this if you have a PortalPlayer PP5020 */ 123/* 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 @@
26 26
27const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] = 27const unsigned short battery_level_dangerous[BATTERY_TYPES_COUNT] =
28{ 28{
29#ifdef IRIVER_H10 29#if defined(IRIVER_H10)
30 3733 30 3733
31#elif defined IRIVER_H10_5GB 31#elif defined(IRIVER_H10_5GB)
32 3695 32 3700
33#endif 33#endif
34}; 34};
35 35
36const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] = 36const unsigned short battery_level_shutoff[BATTERY_TYPES_COUNT] =
37{ 37{
38#ifdef IRIVER_H10 38#if defined(IRIVER_H10)
39 3627
40#elif defined IRIVER_H10_5GB
41 3627 39 3627
40#elif defined(IRIVER_H10_5GB)
41 3600
42#endif 42#endif
43}; 43};
44 44
45/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */ 45/* voltages (millivolt) of 0%, 10%, ... 100% when charging disabled */
46const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] = 46const unsigned short percent_to_volt_discharge[BATTERY_TYPES_COUNT][11] =
47{ 47{
48#ifdef IRIVER_H10 48#if defined(IRIVER_H10)
49 { 3733, 3772, 3821, 3840, 3869, 3917, 3985, 4034, 4072, 4140, 4198 } 49 { 3733, 3772, 3821, 3840, 3869, 3917, 3985, 4034, 4072, 4140, 4198 }
50#elif defined IRIVER_H10_5GB 50#elif defined(IRIVER_H10_5GB)
51 { 3695, 3714, 3772, 3791, 3811, 3850, 3908, 3985, 4024, 4111, 4198 } 51 { 3700, 3800, 3850, 3880, 3910, 3960, 4000, 4070, 4120, 4210, 4280 }
52#endif 52#endif
53}; 53};
54 54
55/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */ 55/* voltages (millivolt) of 0%, 10%, ... 100% when charging enabled */
56const unsigned short percent_to_volt_charge[11] = 56const unsigned short percent_to_volt_charge[11] =
57{ 57{
58#ifdef IRIVER_H10 58#if defined(IRIVER_H10)
59 3956, 3995, 4024, 4043, 4063, 4082, 4111, 4140, 4179, 4218, 4266 59 3956, 3995, 4024, 4043, 4063, 4082, 4111, 4140, 4179, 4218, 4266
60#elif defined IRIVER_H10_5GB 60#elif defined(IRIVER_H10_5GB)
61 /* TODO: Not yet calibrated */ 61 /* TODO: Not yet calibrated */
62 3850, 3888, 3927, 3966, 4024, 4063, 4111, 4150, 4198, 4237, 4286 62 3700, 3800, 3850, 3880, 3910, 3960, 4000, 4070, 4120, 4210, 4280
63#endif 63#endif
64}; 64};
65 65