diff options
author | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-05-18 16:23:11 +0000 |
---|---|---|
committer | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-05-18 16:23:11 +0000 |
commit | 0f6b5f03d9e11ec896b0d86d2027471c12a655eb (patch) | |
tree | 14f1a25943cbf1c60dfa816ab53d7eef39eb8b8b /firmware/target/arm/as3525/system-as3525.c | |
parent | 681cedb4d8e55647fd3a125cdd2966c7d2ccd200 (diff) | |
download | rockbox-0f6b5f03d9e11ec896b0d86d2027471c12a655eb.tar.gz rockbox-0f6b5f03d9e11ec896b0d86d2027471c12a655eb.zip |
Enable/disable second pll dynamically on usb plugin/remove.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26145 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 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index dbbe1a1905..ae7c71d939 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c | |||
@@ -320,16 +320,16 @@ void system_init(void) | |||
320 | "mcr p15, 0, r0, c1, c0 \n" | 320 | "mcr p15, 0, r0, c1, c0 \n" |
321 | : : : "r0" ); | 321 | : : : "r0" ); |
322 | 322 | ||
323 | CGU_COUNTA = 0xff; | 323 | CGU_COUNTA = CGU_LOCK_CNT; |
324 | CGU_PLLA = AS3525_PLLA_SETTING; | 324 | CGU_PLLA = AS3525_PLLA_SETTING; |
325 | CGU_PLLASUP = 0; /* enable PLLA */ | 325 | CGU_PLLASUP = 0; /* enable PLLA */ |
326 | while(!(CGU_INTCTRL & (1<<0))); /* wait until PLLA is locked */ | 326 | while(!(CGU_INTCTRL & CGU_PLLA_LOCK)); /* wait until PLLA is locked */ |
327 | 327 | ||
328 | #if (defined(USE_ROCKBOX_USB) && CONFIG_CPU==AS3525) || (AS3525_MCLK_SEL == AS3525_CLK_PLLB) | 328 | #if AS3525_MCLK_SEL == AS3525_CLK_PLLB |
329 | CGU_COUNTB = 0xff; | 329 | CGU_COUNTB = CGU_LOCK_CNT; |
330 | CGU_PLLB = AS3525_PLLB_SETTING; | 330 | CGU_PLLB = AS3525_PLLB_SETTING; |
331 | CGU_PLLBSUP = 0; /* enable PLLB */ | 331 | CGU_PLLBSUP = 0; /* enable PLLB */ |
332 | while(!(CGU_INTCTRL & (1<<1))); /* wait until PLLB is locked */ | 332 | while(!(CGU_INTCTRL & CGU_PLLB_LOCK)); /* wait until PLLB is locked */ |
333 | #endif | 333 | #endif |
334 | 334 | ||
335 | /* Set FCLK frequency */ | 335 | /* Set FCLK frequency */ |