diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/as3525/debug-as3525.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) | |||
143 | return 0; | 143 | return 0; |
144 | } | 144 | } |
145 | case CLK_EXTMEM: | 145 | case CLK_EXTMEM: |
146 | /* bits 1:0 of CGU_PERI always read as 0 and we assume source = PLLA */ | ||
147 | #if CONFIG_CPU == AS3525 | 146 | #if CONFIG_CPU == AS3525 |
148 | switch(CGU_PERI & 3) { | 147 | switch(CGU_PERI & 3) { |
149 | #else | 148 | #else |
150 | /* bits 1:0 of CGU_PERI always read as 0 and we assume source = PLLA */ | 149 | /* bits 1:0 of CGU_PERI always read as 0 and source = FCLK */ |
151 | switch(1) { | 150 | switch(3) { |
152 | #endif | 151 | #endif |
153 | case 0: | 152 | case 0: |
154 | return CLK_MAIN/(((CGU_PERI>>2)& 0xf)+1); | 153 | return CLK_MAIN/(((CGU_PERI>>2)& 0xf)+1); |