mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
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:
parent
e4cda5ff2c
commit
59dbdabb71
1 changed files with 2 additions and 3 deletions
|
|
@ -143,12 +143,11 @@ static int calc_freq(int clk)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
case CLK_EXTMEM:
|
case CLK_EXTMEM:
|
||||||
/* bits 1:0 of CGU_PERI always read as 0 and we assume source = PLLA */
|
|
||||||
#if CONFIG_CPU == AS3525
|
#if CONFIG_CPU == AS3525
|
||||||
switch(CGU_PERI & 3) {
|
switch(CGU_PERI & 3) {
|
||||||
#else
|
#else
|
||||||
/* bits 1:0 of CGU_PERI always read as 0 and we assume source = PLLA */
|
/* bits 1:0 of CGU_PERI always read as 0 and source = FCLK */
|
||||||
switch(1) {
|
switch(3) {
|
||||||
#endif
|
#endif
|
||||||
case 0:
|
case 0:
|
||||||
return CLK_MAIN/(((CGU_PERI>>2)& 0xf)+1);
|
return CLK_MAIN/(((CGU_PERI>>2)& 0xf)+1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue