summaryrefslogtreecommitdiffstats
path: root/firmware/rolo.c
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2016-01-19 00:21:10 +0100
committerMichael Giacomelli <giac2000@hotmail.com>2016-01-21 19:26:00 +0100
commit3f54101858210c921e6d0039f29f649459a9a1a9 (patch)
tree5b24f6a71922e58d853e0df778afe8ed9eccd8da /firmware/rolo.c
parent7432af09580a2e88fbc47271b38d02dfc0c79837 (diff)
downloadrockbox-3f54101858210c921e6d0039f29f649459a9a1a9.tar.gz
rockbox-3f54101858210c921e6d0039f29f649459a9a1a9.tar.bz2
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.c4
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)
lcd_remote_update();
#endif
adc_close();
+#if CONFIG_CPU == AS3525v2
+ /* Set CVDD1 power supply to default*/
+ ascodec_write_pmu(0x17, 1, 0);
+#endif
#if CONFIG_CPU != IMX31L /* We're not finished yet */
#ifdef CPU_ARM