summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-04-04 08:09:24 -0400
committerMike Frysinger <vapier@gentoo.org>2009-04-06 17:37:47 -0400
commitce1fe4ba6bb9df7c57351436fa17d1af8bbe7916 (patch)
tree9b4d23d630c9aabd66271ad3e8f9859fd5f457eb
parent51ee6e057f7a920e2a125cd9f985d10f625e355f (diff)
downloadu-boot-imx-ce1fe4ba6bb9df7c57351436fa17d1af8bbe7916.zip
u-boot-imx-ce1fe4ba6bb9df7c57351436fa17d1af8bbe7916.tar.gz
u-boot-imx-ce1fe4ba6bb9df7c57351436fa17d1af8bbe7916.tar.bz2
Blackfin: add workaround for anomaly 05000171
DESCRIPTION: The Boot ROM is executed at power up/reset and changes the value of the SICA_IWR registers from their default reset value of 0xFFFF, but does not restore them. WORKAROUND: User code should not rely on the default value of these registers. Set the desired values explicitly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--cpu/blackfin/initcode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpu/blackfin/initcode.c b/cpu/blackfin/initcode.c
index 3120447..d44c6a6 100644
--- a/cpu/blackfin/initcode.c
+++ b/cpu/blackfin/initcode.c
@@ -356,6 +356,10 @@ void initcode(ADI_BOOT_DATA *bootstruct)
#if ANOMALY_05000432
bfin_write_SIC_IWR1(-1);
#endif
+#if ANOMALY_05000171
+ bfin_write_SICA_IWR0(-1);
+ bfin_write_SICA_IWR1(-1);
+#endif
} else {
serial_putc('G');