summaryrefslogtreecommitdiffstats
path: root/firmware/target/coldfire/iriver/system-iriver.c
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-10-02 07:54:50 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-10-02 07:54:50 +0000
commitc90c18ea67b4f1f01befe871dd82f8a6b623a4d8 (patch)
tree7861dfdf17465d99fb811ab66f7b591088644e99 /firmware/target/coldfire/iriver/system-iriver.c
parent15b7321fe1345a9efd296fe135f19e1da45f0e7c (diff)
downloadrockbox-c90c18ea67b4f1f01befe871dd82f8a6b623a4d8.tar.gz
rockbox-c90c18ea67b4f1f01befe871dd82f8a6b623a4d8.tar.bz2
rockbox-c90c18ea67b4f1f01befe871dd82f8a6b623a4d8.zip
Thanks to LinusN, fix Coldfire bootloaders not booting - FS#7533
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14949 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/iriver/system-iriver.c')
-rw-r--r--firmware/target/coldfire/iriver/system-iriver.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/firmware/target/coldfire/iriver/system-iriver.c b/firmware/target/coldfire/iriver/system-iriver.c
index 184f76cdad..e5abe27bc0 100644
--- a/firmware/target/coldfire/iriver/system-iriver.c
+++ b/firmware/target/coldfire/iriver/system-iriver.c
@@ -24,8 +24,6 @@
#include "timer.h"
#include "pcf50606.h"
-#ifdef HAVE_ADJUSTABLE_CPU_FREQ
-
/* Settings for all possible clock frequencies (with properly working timers)
* NOTE: Some 5249 chips don't like having PLLDIV set to 0. We must avoid that!
*
@@ -73,8 +71,13 @@
#define BAUDRATE_DIV_MAX (CPUFREQ_MAX/(BAUD_RATE*32*2))
#endif
+#ifdef HAVE_ADJUSTABLE_CPU_FREQ
void set_cpu_frequency (long) __attribute__ ((section (".icode")));
void set_cpu_frequency(long frequency)
+#else
+void cf_set_cpu_frequency (long) __attribute__ ((section (".icode")));
+void cf_set_cpu_frequency(long frequency)
+#endif
{
switch(frequency)
{
@@ -157,5 +160,3 @@ void set_cpu_frequency(long frequency)
break;
}
}
-
-#endif /* HAVE_ADJUSTABLE_CPU_FREQ */