diff options
author | Michael Giacomelli <giac2000@hotmail.com> | 2008-02-10 05:39:20 +0000 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2008-02-10 05:39:20 +0000 |
commit | 054447f9e6037e4feb1a4c4313bd0afd4eb382a6 (patch) | |
tree | 57d78a645d2700d78a66f1807cc26dca9b6c45c9 /apps/main.c | |
parent | 2b3136e1f350721fa65cc304cad7a00504390850 (diff) | |
download | rockbox-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 'apps/main.c')
-rw-r--r-- | apps/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/main.c b/apps/main.c index 0ce8bcc7ac..92e7149fe8 100644 --- a/apps/main.c +++ b/apps/main.c | |||
@@ -351,6 +351,8 @@ static void init(void) | |||
351 | 351 | ||
352 | settings_reset(); | 352 | settings_reset(); |
353 | 353 | ||
354 | i2c_init(); | ||
355 | |||
354 | power_init(); | 356 | power_init(); |
355 | 357 | ||
356 | set_irq_level(0); | 358 | set_irq_level(0); |
@@ -374,8 +376,6 @@ static void init(void) | |||
374 | #endif | 376 | #endif |
375 | #endif | 377 | #endif |
376 | 378 | ||
377 | i2c_init(); | ||
378 | |||
379 | #if CONFIG_RTC | 379 | #if CONFIG_RTC |
380 | rtc_init(); | 380 | rtc_init(); |
381 | #endif | 381 | #endif |