summaryrefslogtreecommitdiff
path: root/firmware/export/powermgmt.h
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2008-02-10 05:39:20 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2008-02-10 05:39:20 +0000
commit054447f9e6037e4feb1a4c4313bd0afd4eb382a6 (patch)
tree57d78a645d2700d78a66f1807cc26dca9b6c45c9 /firmware/export/powermgmt.h
parent2b3136e1f350721fa65cc304cad7a00504390850 (diff)
downloadrockbox-054447f9e6037e4feb1a4c4313bd0afd4eb382a6.tar.gz
rockbox-054447f9e6037e4feb1a4c4313bd0afd4eb382a6.zip
Commit FS#8379 by Andree Buschmann. Disables much of the remaining unneeded 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
Diffstat (limited to 'firmware/export/powermgmt.h')
-rw-r--r--firmware/export/powermgmt.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/firmware/export/powermgmt.h b/firmware/export/powermgmt.h
index 0666b5af37..56e14b3741 100644
--- a/firmware/export/powermgmt.h
+++ b/firmware/export/powermgmt.h
@@ -105,22 +105,26 @@ extern int trickle_sec; /* trickle charge: How many seconds per minute
105# define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */ 105# define CURRENT_BACKLIGHT 23 /* FIXME: This needs to be measured, copied from H100 */
106# define CURRENT_RECORD 110 /* additional current while recording */ 106# define CURRENT_RECORD 110 /* additional current while recording */
107#elif defined(IPOD_NANO) /* iPOD Nano */ 107#elif defined(IPOD_NANO) /* iPOD Nano */
108# define CURRENT_NORMAL 35 /* 8.5-9.0h playback out of 300mAh battery from IpodRuntime */ 108# define CURRENT_NORMAL 32 /* MP3: ~9h playback out of 300mAh battery */
109# define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */ 109# define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */
110#if defined(HAVE_RECORDING) 110#if defined(HAVE_RECORDING)
111# define CURRENT_RECORD 35 /* FIXME: this needs adjusting */ 111# define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
112#endif 112#endif
113#elif defined(IPOD_VIDEO) /* iPOD Video */ 113#elif defined(IPOD_VIDEO) /* iPOD Video */
114# define CURRENT_NORMAL 42 /* 9.5h out of 400mAh battery (30GB) or 14h out of 600mAh (60GB) from IpodRuntime */ 114# define CURRENT_NORMAL 35 /* MP3: ~11h out of 400mAh battery (30GB) or ~17h out of 600mAh (60GB) */
115# define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */ 115# define CURRENT_BACKLIGHT 20 /* FIXME: this needs adjusting */
116#if defined(HAVE_RECORDING) 116#if defined(HAVE_RECORDING)
117# define CURRENT_RECORD 35 /* FIXME: this needs adjusting */ 117# define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
118#endif 118#endif
119#elif defined(SANSA_E200) /* Sandisk players */ 119#elif defined(SANSA_E200) /* Sandisk E200v1 */
120# define CURRENT_NORMAL 50 /* Toni's measurements in spring 2007 suggests 50 ma during normal operation */ 120# define CURRENT_NORMAL 45 /* Mike's measurements in Jan 2008 */
121# define CURRENT_BACKLIGHT 20 /* seems like a reasonible value for now */ 121# define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
122# define CURRENT_RECORD 35 /* FIXME: this needs adjusting */ 122# define CURRENT_RECORD 40 /* flash player, so this is just unboosted current*/
123#else /* Not iriver H1x0, H3x0, nor Archos Ondio, nor iPODVideo, nor Sansas */ 123#elif defined(SANSA_C200) /* Sandisk C200v1 */
124# define CURRENT_NORMAL 45 /* Should be nearly identical to E200 */
125# define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
126# define CURRENT_RECORD 40 /* flash player, so this is just unboosted current*/
127#else /* Not iriver H1x0, H3x0, nor Archos Ondio, nor iPod nano/Video, nor Sansas */
124# define CURRENT_NORMAL 145 /* usual current in mA when using the AJB including some disk/backlight/... activity */ 128# define CURRENT_NORMAL 145 /* usual current in mA when using the AJB including some disk/backlight/... activity */
125# define CURRENT_BACKLIGHT 30 /* additional current when backlight always on */ 129# define CURRENT_BACKLIGHT 30 /* additional current when backlight always on */
126#if defined(HAVE_RECORDING) 130#if defined(HAVE_RECORDING)