diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2008-11-03 22:48:56 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-11-03 22:48:56 +0000 |
commit | 23d6df43f85cbf1e0a8ba7f16bb6413568bd83ca (patch) | |
tree | 74062055b0837d25130a686e5a675878f2b01616 /firmware | |
parent | 03be50a1ef02b2fa883b119a7a4214c459ac80dd (diff) |
AS3525 : wait until PLLA is locked when changed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18996 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 9944e60cc5..d2729b7ec6 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c @@ -209,6 +209,8 @@ void system_init(void) : : : "r0" ); CGU_PLLA = 0x4330; /* PLLA 384 MHz */ + while(!(CGU_INTCTRL & (1<<0))); /* wait until PLLA is locked */ + CGU_PROC = (3<<2)|0x01; /* fclk = PLLA*5/8 = 240 MHz */ asm volatile( |