1
0
Fork 0
forked from len0rd/rockbox

iRiver: Increased the max CPU frequency to 120MHz

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6125 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-03-03 21:48:02 +00:00
parent 0de0162ebe
commit 32160dc3c3
2 changed files with 6 additions and 6 deletions

View file

@ -200,7 +200,7 @@ static inline void invalidate_icache(void)
#define CPUFREQ_DEFAULT CPU_FREQ #define CPUFREQ_DEFAULT CPU_FREQ
#define CPUFREQ_NORMAL 47980800 #define CPUFREQ_NORMAL 47980800
#define CPUFREQ_MAX 95961600 #define CPUFREQ_MAX 119952000
#elif CONFIG_CPU == TCC730 #elif CONFIG_CPU == TCC730

View file

@ -483,16 +483,16 @@ void set_cpu_frequency(long frequency)
DCR = (DCR & ~0x000001ff) | 1; /* Refresh timer for bypass DCR = (DCR & ~0x000001ff) | 1; /* Refresh timer for bypass
frequency */ frequency */
PLLCR &= ~1; /* Bypass mode */ PLLCR &= ~1; /* Bypass mode */
PLLCR = 0x11c8600d; PLLCR = 0x11853005;
CSCR0 = 0x00000580; /* Flash: 1 wait state */ CSCR0 = 0x00000980; /* Flash: 2 wait state */
CSCR1 = 0x00001180; /* LCD: 4 wait states */ CSCR1 = 0x00002580; /* LCD: 9 wait states */
while(!(PLLCR & 0x80000000)) {}; /* Wait until the PLL has locked. while(!(PLLCR & 0x80000000)) {}; /* Wait until the PLL has locked.
This may take up to 10ms! */ This may take up to 10ms! */
DCR = (DCR & ~0x000001ff) | 33; /* Refresh timer */ DCR = (DCR & ~0x000001ff) | 28; /* Refresh timer */
cpu_frequency = CPUFREQ_MAX; cpu_frequency = CPUFREQ_MAX;
tick_start(1000/HZ); tick_start(1000/HZ);
IDECONFIG1 = (IDECONFIG1 & ~(7 << 10)) | (5 << 10); /* CS2Pre,Post */ IDECONFIG1 = (IDECONFIG1 & ~(7 << 10)) | (5 << 10); /* CS2Pre,Post */
IDECONFIG2 = (IDECONFIG2 & ~0x0000ff00) | (0 << 8); /* CS2wait */ IDECONFIG2 = (IDECONFIG2 & ~0x0000ff00) | (1 << 8); /* CS2wait */
break; break;
case CPUFREQ_NORMAL: case CPUFREQ_NORMAL: