mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
as3525v2: effect of CGU_PROC on fclk is instant
We do not need any delay after modifying it in system_init(), so the same applies in set_cpu_frequency() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25753 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5187b4199b
commit
2a180e8039
1 changed files with 0 additions and 5 deletions
|
|
@ -465,9 +465,6 @@ void set_cpu_frequency(long frequency)
|
|||
CGU_PROC = ((AS3525_FCLK_POSTDIV << 4) |
|
||||
(AS3525_FCLK_PREDIV << 2) |
|
||||
AS3525_FCLK_SEL);
|
||||
|
||||
delay = 40; while(delay--) asm("nop");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -477,8 +474,6 @@ void set_cpu_frequency(long frequency)
|
|||
(AS3525_FCLK_PREDIV << 2) |
|
||||
AS3525_FCLK_SEL);
|
||||
|
||||
delay = 40; while(delay--) asm("nop");
|
||||
|
||||
/* Change PCLK after FCLK is low, so it doesn't go too high */
|
||||
CGU_PERI = (CGU_PERI & ~(0xF << 2)) | (AS3525_PCLK_DIV0_UNBOOSTED << 2);
|
||||
delay = 40; while(delay--) asm("nop");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue