mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Sansa AMS: Disable voltage scaling for now until we found a way to make it reliable for everyone, it's causing problems with storage for many people.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21687 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a306e90f21
commit
c292a8eb1f
1 changed files with 4 additions and 3 deletions
|
|
@ -329,13 +329,14 @@ void set_cpu_frequency(long frequency)
|
|||
{
|
||||
if(frequency == CPUFREQ_MAX)
|
||||
{
|
||||
#ifdef HAVE_ADJUSTABLE_CPU_VOLTAGE
|
||||
/* Increasing frequency so boost voltage before change */
|
||||
ascodec_write(AS3514_CVDD_DCDC3, (AS314_CP_DCDC3_SETTING | CVDD_1_20));
|
||||
|
||||
/* Wait for voltage to be at least 1.20v before making fclk > 200 MHz */
|
||||
while(adc_read(ADC_CVDD) < 480) /* 480 * .0025 = 1.20V */
|
||||
;
|
||||
|
||||
#endif
|
||||
asm volatile(
|
||||
"mrc p15, 0, r0, c1, c0 \n"
|
||||
|
||||
|
|
@ -358,10 +359,10 @@ void set_cpu_frequency(long frequency)
|
|||
"bic r0, r0, #3<<30 \n" /* fastbus clocking */
|
||||
"mcr p15, 0, r0, c1, c0 \n"
|
||||
: : : "r0" );
|
||||
|
||||
#ifdef HAVE_ADJUSTABLE_CPU_VOLTAGE
|
||||
/* Decreasing frequency so reduce voltage after change */
|
||||
ascodec_write(AS3514_CVDD_DCDC3, (AS314_CP_DCDC3_SETTING | CVDD_1_10));
|
||||
|
||||
#endif
|
||||
cpu_frequency = CPUFREQ_NORMAL;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue