summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/system-as3525.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-06-23 07:06:06 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-06-23 07:06:06 +0000
commita937b8ba0568bbd028791fb986d1ab7e41ab6f5b (patch)
treebf6aeb906052f5b30d54dd397b26c37935e63386 /firmware/target/arm/as3525/system-as3525.c
parent49a3808ddf4bfc60ce328b46f67c1ece3c16195a (diff)
downloadrockbox-a937b8ba0568bbd028791fb986d1ab7e41ab6f5b.tar.gz
rockbox-a937b8ba0568bbd028791fb986d1ab7e41ab6f5b.zip
as3525*: initialize cpu_frequency correctly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27082 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/system-as3525.c')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c
index 8654e61138..2e4747efaf 100644
--- a/firmware/target/arm/as3525/system-as3525.c
+++ b/firmware/target/arm/as3525/system-as3525.c
@@ -265,6 +265,12 @@ void system_init(void)
#endif
AS3525_PCLK_SEL);
+#if CONFIG_CPU == AS3525
+ cpu_frequency = CPUFREQ_DEFAULT; /* fastbus */
+#else
+ cpu_frequency = CPUFREQ_MAX;
+#endif
+
#if !defined(BOOTLOADER) && defined(SANSA_FUZE) || defined(SANSA_CLIP) || defined(SANSA_E200V2)
/* XXX: remove me when we have a new bootloader */
MPMC_DYNAMIC_CONTROL = 0x0; /* MPMCCLKOUT stops when all SDRAMs are idle */