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
This commit is contained in:
Mihail Zenkov 2016-02-20 04:14:52 +00:00 committed by Gerrit Rockbox
parent 77a35363c5
commit 775b21ebc4

View file

@ -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