summaryrefslogtreecommitdiffstats
path: root/firmware/target
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-09-21 22:32:56 +0000
committerJens Arnold <amiconn@rockbox.org>2008-09-21 22:32:56 +0000
commit3e9ca1de90ececc4f5c57058c565275823c0f800 (patch)
treecf30947379ac113b7126b23c0c39e2e732e0f39a /firmware/target
parent95f516e0b9ba03372b2f2b89c9c8adf99b069913 (diff)
downloadrockbox-3e9ca1de90ececc4f5c57058c565275823c0f800.tar.gz
rockbox-3e9ca1de90ececc4f5c57058c565275823c0f800.zip
Define the various CPUFREQ_* macros so that Gigabeat S compiles with test_codec enabled, and use the correct value.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18562 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/system-target.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/system-target.h b/firmware/target/arm/imx31/gigabeat-s/system-target.h
index 6438cde329..f25702eb4e 100644
--- a/firmware/target/arm/imx31/gigabeat-s/system-target.h
+++ b/firmware/target/arm/imx31/gigabeat-s/system-target.h
@@ -24,7 +24,12 @@
#include "system-arm.h"
#include "mmu-arm.h"
-#define CPUFREQ_NORMAL 532000000
+#ifndef HAVE_ADJUSTABLE_CPU_FREQ
+/* TODO: implement CPU frequency scaling */
+#define CPUFREQ_DEFAULT CPU_FREQ
+#define CPUFREQ_NORMAL CPU_FREQ
+#define CPUFREQ_MAX CPU_FREQ
+#endif
#if 0
static inline void udelay(unsigned int usecs)
@@ -49,7 +54,7 @@ static inline void invalidate_icache(void)
asm volatile(
/* Clean and invalidate entire data cache */
"mcr p15, 0, %0, c7, c14, 0 \n"
- /* Invalidate entire intruction cache
+ /* Invalidate entire instruction cache
* Also flushes the branch target cache */
"mcr p15, 0, %0, c7, c5, 0 \n"
/* Data synchronization barrier */