diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-04-29 00:43:24 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-04-29 00:43:24 +0000 |
commit | 2a180e80398a7915b7fd2fdc6cf404b6fd019fbd (patch) | |
tree | 28eeb79dc13939fdefd0ae857738f3cbfcb74c87 /firmware/target/arm/as3525/system-as3525.c | |
parent | 5187b4199b7fbe51c99c5882eb18f6c809924d8a (diff) | |
download | rockbox-2a180e80398a7915b7fd2fdc6cf404b6fd019fbd.tar.gz rockbox-2a180e80398a7915b7fd2fdc6cf404b6fd019fbd.zip |
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
Diffstat (limited to 'firmware/target/arm/as3525/system-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index e3e41998ce..2b3e163611 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c | |||
@@ -465,9 +465,6 @@ void set_cpu_frequency(long frequency) | |||
465 | CGU_PROC = ((AS3525_FCLK_POSTDIV << 4) | | 465 | CGU_PROC = ((AS3525_FCLK_POSTDIV << 4) | |
466 | (AS3525_FCLK_PREDIV << 2) | | 466 | (AS3525_FCLK_PREDIV << 2) | |
467 | AS3525_FCLK_SEL); | 467 | AS3525_FCLK_SEL); |
468 | |||
469 | delay = 40; while(delay--) asm("nop"); | ||
470 | |||
471 | } | 468 | } |
472 | else | 469 | else |
473 | { | 470 | { |
@@ -477,8 +474,6 @@ void set_cpu_frequency(long frequency) | |||
477 | (AS3525_FCLK_PREDIV << 2) | | 474 | (AS3525_FCLK_PREDIV << 2) | |
478 | AS3525_FCLK_SEL); | 475 | AS3525_FCLK_SEL); |
479 | 476 | ||
480 | delay = 40; while(delay--) asm("nop"); | ||
481 | |||
482 | /* Change PCLK after FCLK is low, so it doesn't go too high */ | 477 | /* Change PCLK after FCLK is low, so it doesn't go too high */ |
483 | CGU_PERI = (CGU_PERI & ~(0xF << 2)) | (AS3525_PCLK_DIV0_UNBOOSTED << 2); | 478 | CGU_PERI = (CGU_PERI & ~(0xF << 2)) | (AS3525_PCLK_DIV0_UNBOOSTED << 2); |
484 | delay = 40; while(delay--) asm("nop"); | 479 | delay = 40; while(delay--) asm("nop"); |