]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Blackfin: add workaround for anomaly 05000242
authorMike Frysinger <vapier@gentoo.org>
Sat, 4 Apr 2009 12:10:22 +0000 (08:10 -0400)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Apr 2009 21:37:48 +0000 (17:37 -0400)
DESCRIPTION:
If the DF bit is set prior to a hardware reset, the PLL will continue to
divide CLKIN by 2 after the hardware reset, but the DF bit itself will be
cleared in the PLL_CTL register.

WORKAROUND:
Reprogram the PLL with DF cleared if the desire is to not divide CLKIN by
2 after reset.

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

index d44c6a6fc55ca6d040a28249a3badcb2887ae27e..7f54860786e2cfb522d926c4c0316e512454eef1 100644 (file)
@@ -401,7 +401,7 @@ void initcode(ADI_BOOT_DATA *bootstruct)
                /* Only reprogram when needed to avoid triggering unnecessary
                 * PLL relock sequences.
                 */
-               if (bfin_read_PLL_CTL() != CONFIG_PLL_CTL_VAL) {
+               if (ANOMALY_05000242 || bfin_read_PLL_CTL() != CONFIG_PLL_CTL_VAL) {
                        serial_putc('!');
                        bfin_write_PLL_CTL(CONFIG_PLL_CTL_VAL);
                        asm("idle;");