summaryrefslogtreecommitdiff
path: root/firmware/export/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r--firmware/export/system.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 58e6570d3a..c2246e1e70 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -257,14 +257,17 @@ static inline unsigned long SWAB32(unsigned long value)
257static inline void invalidate_icache(void) 257static inline void invalidate_icache(void)
258{ 258{
259 asm volatile ("move.l #0x01000000,%d0\n" 259 asm volatile ("move.l #0x01000000,%d0\n"
260 "movec.l %d0,%cacr\n" 260 "movec.l %d0,%cacr\n"
261 "move.l #0x80000000,%d0\n" 261 "move.l #0x80000000,%d0\n"
262 "movec.l %d0,%cacr"); 262 "movec.l %d0,%cacr");
263} 263}
264 264
265#define CPUFREQ_DEFAULT CPU_FREQ 265#define CPUFREQ_DEFAULT_MULT 1
266#define CPUFREQ_NORMAL 47980800 266#define CPUFREQ_DEFAULT (CPUFREQ_DEFAULT_MULT * CPU_FREQ)
267#define CPUFREQ_MAX 119952000 267#define CPUFREQ_NORMAL_MULT 4
268#define CPUFREQ_NORMAL (CPUFREQ_NORMAL_MULT * CPU_FREQ)
269#define CPUFREQ_MAX_MULT 11
270#define CPUFREQ_MAX (CPUFREQ_MAX_MULT * CPU_FREQ)
268 271
269#elif CONFIG_CPU == TCC730 272#elif CONFIG_CPU == TCC730
270 273