mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
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:
parent
acf54bed55
commit
44870b7415
6 changed files with 30 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue