]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Blackfin: handle reboot anomaly 432
authorMike Frysinger <vapier@gentoo.org>
Sat, 6 Dec 2008 23:06:58 +0000 (18:06 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 23 Mar 2009 19:14:54 +0000 (15:14 -0400)
Workaround anomaly 432:
The bfrom_SysControl() firmware function does not clear the SIC_IWR1
register before executing the PLL programming sequence.  Therefore, any
interrupt enabled in the SIC_IWR1 register prior to the call to
bfrom_SysControl() can prematurely terminate the idle sequence required
for the PLL to relock properly. SIC_IWR0 is properly handled.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
cpu/blackfin/initcode.c

index 342b96ab8f1001fd148692af545f9757f1986af7..1b58f997dd4df0942a161906f2878cea6dad9841 100644 (file)
@@ -273,8 +273,14 @@ void initcode(ADI_BOOT_DATA *bootstruct)
                memory_settings.uwPllCtl = CONFIG_PLL_CTL_VAL;
                memory_settings.uwPllDiv = CONFIG_PLL_DIV_VAL;
                memory_settings.uwPllLockCnt = CONFIG_PLL_LOCKCNT_VAL;
+#if ANOMALY_05000432
+               bfin_write_SIC_IWR1(0);
+#endif
                syscontrol(SYSCTRL_WRITE | SYSCTRL_VRCTL | SYSCTRL_PLLCTL | SYSCTRL_PLLDIV | SYSCTRL_LOCKCNT |
                        (CONFIG_VR_CTL_VAL & FREQ_MASK ? SYSCTRL_INTVOLTAGE : SYSCTRL_EXTVOLTAGE), &memory_settings, NULL);
+#if ANOMALY_05000432
+               bfin_write_SIC_IWR1(-1);
+#endif
        } else {
                serial_putc('L');