mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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:
parent
77a35363c5
commit
775b21ebc4
1 changed files with 7 additions and 4 deletions
|
|
@ -460,9 +460,12 @@ void set_cpu_frequency(long frequency)
|
||||||
{
|
{
|
||||||
if(frequency == CPUFREQ_MAX)
|
if(frequency == CPUFREQ_MAX)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
/* Set CVDD1 power supply */
|
/* 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) |
|
CGU_PROC = ((AS3525_FCLK_POSTDIV << 4) |
|
||||||
(AS3525_FCLK_PREDIV << 2) |
|
(AS3525_FCLK_PREDIV << 2) |
|
||||||
AS3525_FCLK_SEL);
|
AS3525_FCLK_SEL);
|
||||||
|
|
@ -478,13 +481,13 @@ void set_cpu_frequency(long frequency)
|
||||||
cpu_frequency = CPUFREQ_NORMAL;
|
cpu_frequency = CPUFREQ_NORMAL;
|
||||||
|
|
||||||
/* Set CVDD1 power supply */
|
/* Set CVDD1 power supply */
|
||||||
/*
|
#if 0
|
||||||
#ifdef SANSA_CLIPZIP
|
#ifdef SANSA_CLIPZIP
|
||||||
ascodec_write_pmu(0x17, 1, 0x80 | 19);
|
ascodec_write_pmu(0x17, 1, 0x80 | 19);
|
||||||
#else
|
#else
|
||||||
ascodec_write_pmu(0x17, 1, 0x80 | 22);
|
ascodec_write_pmu(0x17, 1, 0x80 | 22);
|
||||||
#endif
|
#endif
|
||||||
*/
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue