diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2010-04-01 03:22:49 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-04-01 03:22:49 +0000 |
| commit | f4dcc69b51f329c4f0b37baed41df5cb75afe01e (patch) | |
| tree | 2752bbab9bdc9bb383585c226bb267a5d40f5daf | |
| parent | d5e6bc7a8c413218ec1372fd54157e9639ab67b4 (diff) | |
| download | rockbox-f4dcc69b51f329c4f0b37baed41df5cb75afe01e.zip rockbox-f4dcc69b51f329c4f0b37baed41df5cb75afe01e.tar.gz rockbox-f4dcc69b51f329c4f0b37baed41df5cb75afe01e.tar.bz2 rockbox-f4dcc69b51f329c4f0b37baed41df5cb75afe01e.tar.xz | |
as3525*: set up CGU_COUNT register before turning on / modifying PLLs
Write the setting before enabling the PLL
Fix booting problem (black screen) with Clip+
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25415 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 41cc543..74e4f2b 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c @@ -262,13 +262,15 @@ void system_init(void) "mcr p15, 0, r0, c1, c0 \n" : : : "r0" ); - CGU_PLLASUP = 0; /* enable PLLA */ + CGU_COUNTA = 0xff; CGU_PLLA = AS3525_PLLA_SETTING; + CGU_PLLASUP = 0; /* enable PLLA */ while(!(CGU_INTCTRL & (1<<0))); /* wait until PLLA is locked */ #if (AS3525_MCLK_SEL == AS3525_CLK_PLLB) - CGU_PLLBSUP = 0; /* enable PLLB */ + CGU_COUNTB = 0xff; CGU_PLLB = AS3525_PLLB_SETTING; + CGU_PLLBSUP = 0; /* enable PLLB */ while(!(CGU_INTCTRL & (1<<1))); /* wait until PLLB is locked */ #endif |