From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Date: Mon, 18 Oct 2010 00:10:49 +0400 Subject: [U-Boot] [PATCH 2/2] Blackfin: workaround anomaly 05000440 In-Reply-To: <1287102237-29868-2-git-send-email-vapier@gentoo.org> References: <1287102237-29868-1-git-send-email-vapier@gentoo.org> <1287102237-29868-2-git-send-email-vapier@gentoo.org> Message-ID: <4CBB5849.6030708@mvista.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello. On 15-10-2010 04:23, Mike Frysinger wrote: > We cannot rely on the syscontrol rom func to program PLL_DIV with anomaly > 05000440 is in effect, so manually program the MMR when necessary. > Signed-off-by: Mike Frysinger [...] > diff --git a/arch/blackfin/cpu/initcode.c b/arch/blackfin/cpu/initcode.c > index 007f5ce..433d477 100644 > --- a/arch/blackfin/cpu/initcode.c > +++ b/arch/blackfin/cpu/initcode.c > @@ -391,7 +391,9 @@ program_clocks(ADI_BOOT_DATA *bs, bool put_into_srfs) > > /* Always programming PLL_LOCKCNT avoids Anomaly 05000430 */ > ADI_SYSCTRL_VALUES memory_settings; > - uint32_t actions = SYSCTRL_WRITE | SYSCTRL_PLLCTL | SYSCTRL_PLLDIV | SYSCTRL_LOCKCNT; > + uint32_t actions = SYSCTRL_WRITE | SYSCTRL_PLLCTL | SYSCTRL_LOCKCNT; An empty line is needed here... > + if (!ANOMALY_05000440) > + actions |= SYSCTRL_PLLDIV; > if (CONFIG_HAS_VR) { > actions |= SYSCTRL_VRCTL; > if (CONFIG_VR_CTL_VAL& FREQ_MASK) WBR, Sergei