summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2016-02-20 04:14:52 +0000
committerGerrit Rockbox <gerrit@rockbox.org>2016-03-27 21:59:22 +0200
commit775b21ebc45051b51851ee5ed6597c221ed9cede (patch)
treee1ba270c039e186db9c78500539625bb958ad4e7 /firmware/target/arm/as3525
parent77a35363c59dabb0a0ead6b8c078d3de8dd0a248 (diff)
downloadrockbox-775b21ebc45051b51851ee5ed6597c221ed9cede.tar.gz
rockbox-775b21ebc45051b51851ee5ed6597c221ed9cede.tar.bz2
rockbox-775b21ebc45051b51851ee5ed6597c221ed9cede.zip
AMSv2: additional delay for voltage scaling
We need additional delay since ascodec_write_pmu() working faster in non-interrupts version of I2C2. Change-Id: If4af3e42b3c8e8214baa36e54353b8adb527552d
Diffstat (limited to 'firmware/target/arm/as3525')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index 1db4699ec8..22aa90aad6 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -460,9 +460,12 @@ void set_cpu_frequency(long frequency)
{
if(frequency == CPUFREQ_MAX)
{
+#if 0
/* Set CVDD1 power supply */
- /*ascodec_write_pmu(0x17, 1, 0x80 | 47);*/
-
+ ascodec_write_pmu(0x17, 1, 0x80 | 47);
+ /* dely for voltage rising */
+ udelay(50);
+#endif
CGU_PROC = ((AS3525_FCLK_POSTDIV << 4) |
(AS3525_FCLK_PREDIV << 2) |
AS3525_FCLK_SEL);
@@ -478,13 +481,13 @@ void set_cpu_frequency(long frequency)
cpu_frequency = CPUFREQ_NORMAL;
/* Set CVDD1 power supply */
- /*
+#if 0
#ifdef SANSA_CLIPZIP
ascodec_write_pmu(0x17, 1, 0x80 | 19);
#else
ascodec_write_pmu(0x17, 1, 0x80 | 22);
#endif
- */
+#endif
}
}
#endif