提交 48ab1509 编写于 作者: M Mike Frysinger

Blackfin: add workaround for anomaly 05000242

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: NMike Frysinger <vapier@gentoo.org>
上级 ce1fe4ba
...@@ -401,7 +401,7 @@ void initcode(ADI_BOOT_DATA *bootstruct) ...@@ -401,7 +401,7 @@ void initcode(ADI_BOOT_DATA *bootstruct)
/* Only reprogram when needed to avoid triggering unnecessary /* Only reprogram when needed to avoid triggering unnecessary
* PLL relock sequences. * 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('!'); serial_putc('!');
bfin_write_PLL_CTL(CONFIG_PLL_CTL_VAL); bfin_write_PLL_CTL(CONFIG_PLL_CTL_VAL);
asm("idle;"); asm("idle;");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册