Temporarily set the max CPU frequency to 90MHz on the H300
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8077 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ec5366ac79
commit
ddef7ee171
2 changed files with 8 additions and 0 deletions
|
@ -289,7 +289,11 @@ static inline void invalidate_icache(void)
|
|||
#define CPUFREQ_DEFAULT (CPUFREQ_DEFAULT_MULT * CPU_FREQ)
|
||||
#define CPUFREQ_NORMAL_MULT 4
|
||||
#define CPUFREQ_NORMAL (CPUFREQ_NORMAL_MULT * CPU_FREQ)
|
||||
#ifdef IRIVER_H300_SERIES
|
||||
#define CPUFREQ_MAX_MULT 8
|
||||
#else
|
||||
#define CPUFREQ_MAX_MULT 11
|
||||
#endif
|
||||
#define CPUFREQ_MAX (CPUFREQ_MAX_MULT * CPU_FREQ)
|
||||
|
||||
#elif CONFIG_CPU == PP5020
|
||||
|
|
|
@ -599,7 +599,11 @@ void set_cpu_frequency(long frequency)
|
|||
/* Refresh timer for bypass frequency */
|
||||
PLLCR &= ~1; /* Bypass mode */
|
||||
timers_adjust_prescale(CPUFREQ_DEFAULT_MULT, false);
|
||||
#ifdef IRIVER_H300_SERIES
|
||||
PLLCR = 0x1183e005;
|
||||
#else
|
||||
PLLCR = 0x11856005;
|
||||
#endif
|
||||
CSCR0 = 0x00001180; /* Flash: 4 wait states */
|
||||
CSCR1 = 0x00000980; /* LCD: 2 wait states */
|
||||
while(!(PLLCR & 0x80000000)) {}; /* Wait until the PLL has locked.
|
||||
|
|
Loading…
Reference in a new issue