From f4dcc69b51f329c4f0b37baed41df5cb75afe01e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Thu, 1 Apr 2010 03:22:49 +0000 Subject: [PATCH] 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 --- firmware/target/arm/as3525/system-as3525.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 41cc54301b..74e4f2bc7b 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