as3525v2: show the correct freqs in debug menu, CGU_PERI uses fclk as source

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25485 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-04-05 15:22:36 +00:00
parent e4cda5ff2c
commit 59dbdabb71

View file

@ -143,12 +143,11 @@ static int calc_freq(int clk)
return 0;
}
case CLK_EXTMEM:
/* bits 1:0 of CGU_PERI always read as 0 and we assume source = PLLA */
#if CONFIG_CPU == AS3525
switch(CGU_PERI & 3) {
#else
/* bits 1:0 of CGU_PERI always read as 0 and we assume source = PLLA */
switch(1) {
/* bits 1:0 of CGU_PERI always read as 0 and source = FCLK */
switch(3) {
#endif
case 0:
return CLK_MAIN/(((CGU_PERI>>2)& 0xf)+1);