summaryrefslogtreecommitdiff
path: root/firmware/target/arm/adc-pp5020.c
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/target/arm/adc-pp5020.c
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/target/arm/adc-pp5020.c')
-rw-r--r--firmware/target/arm/adc-pp5020.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/adc-pp5020.c b/firmware/target/arm/adc-pp5020.c
index 616ef04861..7ce5ac7011 100644
--- a/firmware/target/arm/adc-pp5020.c
+++ b/firmware/target/arm/adc-pp5020.c
@@ -119,6 +119,7 @@ void adc_init(void)
119 ADC_ADDR |= 0x2000000; 119 ADC_ADDR |= 0x2000000;
120 ADC_STATUS |= 0x2000; 120 ADC_STATUS |= 0x2000;
121 121
122#if defined (IRIVER_H10) || defined(IRIVER_H10_5GB)
122 /* Enable channel 2 (H10:remote) */ 123 /* Enable channel 2 (H10:remote) */
123 DEV_INIT1 &=~0x300; 124 DEV_INIT1 &=~0x300;
124 DEV_INIT1 |= 0x100; 125 DEV_INIT1 |= 0x100;
@@ -130,6 +131,7 @@ void adc_init(void)
130 DEV_INIT1 |= 0x1000; 131 DEV_INIT1 |= 0x1000;
131 ADC_ADDR |= 0x8000000; 132 ADC_ADDR |= 0x8000000;
132 ADC_STATUS |= 0x20000000; 133 ADC_STATUS |= 0x20000000;
134#endif
133 135
134 /* Force a scan of all channels to get initial values */ 136 /* Force a scan of all channels to get initial values */
135 adc_scan(0); 137 adc_scan(0);