diff options
author | Mihail Zenkov <mihail.zenkov@gmail.com> | 2016-01-19 00:21:10 +0100 |
---|---|---|
committer | Michael Giacomelli <giac2000@hotmail.com> | 2016-01-21 19:26:00 +0100 |
commit | 3f54101858210c921e6d0039f29f649459a9a1a9 (patch) | |
tree | 5b24f6a71922e58d853e0df778afe8ed9eccd8da /firmware/rolo.c | |
parent | 7432af09580a2e88fbc47271b38d02dfc0c79837 (diff) | |
download | rockbox-3f54101858210c921e6d0039f29f649459a9a1a9.tar.gz rockbox-3f54101858210c921e6d0039f29f649459a9a1a9.zip |
Enable frequency scaling on AMSv2 devices.
Voltage scaling is not yet enabled, but will follow once we are sure
these changes are stable. Preliminary testing suggests a large
increase in battery life, which will be further improved by voltage
scaling. Patch by Mihail Zenkov with help from myself and others on
the forums.
Change-Id: I171d20bbee19a48c13cd14efb0d023883cc8c687
Diffstat (limited to 'firmware/rolo.c')
-rw-r--r-- | firmware/rolo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c index 923199f9d4..8976a3ea23 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c | |||
@@ -267,6 +267,10 @@ int rolo_load(const char* filename) | |||
267 | lcd_remote_update(); | 267 | lcd_remote_update(); |
268 | #endif | 268 | #endif |
269 | adc_close(); | 269 | adc_close(); |
270 | #if CONFIG_CPU == AS3525v2 | ||
271 | /* Set CVDD1 power supply to default*/ | ||
272 | ascodec_write_pmu(0x17, 1, 0); | ||
273 | #endif | ||
270 | 274 | ||
271 | #if CONFIG_CPU != IMX31L /* We're not finished yet */ | 275 | #if CONFIG_CPU != IMX31L /* We're not finished yet */ |
272 | #ifdef CPU_ARM | 276 | #ifdef CPU_ARM |