summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/system-as3525.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/system-as3525.c')
-rw-r--r--firmware/target/arm/as3525/system-as3525.c2
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(