iPod Classic: Enable boosting by switching the CPU between 1x and 2x AHB clock

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29265 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sparmann 2011-02-09 21:45:57 +00:00
parent acf54bed55
commit 44870b7415
6 changed files with 30 additions and 16 deletions

View file

@ -253,13 +253,16 @@ void set_cpu_frequency(long frequency)
if (cpu_frequency == frequency)
return;
//TODO: Need to understand this better
if (frequency == CPUFREQ_MAX)
{
//TODO: Figure out and implement
CLKCON0 = 0x3011;
CLKCON1 = 0x4001;
}
else
{
//TODO: Figure out and implement
CLKCON1 = 0x404101;
CLKCON0 = 0x3000;
}
cpu_frequency = frequency;