From 59dbdabb717b3e1a16ab56eafb8178fd529b9d09 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Mon, 5 Apr 2010 15:22:36 +0000 Subject: 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 --- firmware/target/arm/as3525/debug-as3525.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'firmware/target/arm') diff --git a/firmware/target/arm/as3525/debug-as3525.c b/firmware/target/arm/as3525/debug-as3525.c index 5c135cc10d..9f7b46df8e 100644 --- a/firmware/target/arm/as3525/debug-as3525.c +++ b/firmware/target/arm/as3525/debug-as3525.c @@ -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); -- cgit v1.2.3