From: funman Date: Wed, 23 Jun 2010 07:06:06 +0000 (+0000) Subject: as3525*: initialize cpu_frequency correctly X-Git-Url: https://repo.or.cz/w/kugel-rb.git/commitdiff_plain/547e6a583c9e75a1c4402ac2d08f15635148c723 as3525*: initialize cpu_frequency correctly git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27082 a1c6a512-1295-4272-9138-f99709370657 --- diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 8654e6113..2e4747efa 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 */