as3525*: initialize cpu_frequency correctly

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27082 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-06-23 07:06:06 +00:00
parent 49a3808ddf
commit a937b8ba05

View file

@ -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 */