aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin
diff options
context:
space:
mode:
authorGraf Yang <graf.yang@analog.com>2009-05-08 07:42:12 +0000
committerMike Frysinger <vapier@gentoo.org>2009-06-12 06:11:39 -0400
commit8af7ffa0d5460586e0f06b2f045a6a2631224b61 (patch)
treeffe294585cb5bb82f1319c58ffc62ece6b4346f2 /arch/blackfin
parent1fa9be72b558c39459f98835eb86dbb4ef4da30b (diff)
downloadkernel_samsung_crespo-8af7ffa0d5460586e0f06b2f045a6a2631224b61.zip
kernel_samsung_crespo-8af7ffa0d5460586e0f06b2f045a6a2631224b61.tar.gz
kernel_samsung_crespo-8af7ffa0d5460586e0f06b2f045a6a2631224b61.tar.bz2
Blackfin: add workaround for anomaly 05000287
Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r--arch/blackfin/kernel/cplb-nompu/cacheinit.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/blackfin/kernel/cplb-nompu/cacheinit.c b/arch/blackfin/kernel/cplb-nompu/cacheinit.c
index c6ff947..d5a86c3 100644
--- a/arch/blackfin/kernel/cplb-nompu/cacheinit.c
+++ b/arch/blackfin/kernel/cplb-nompu/cacheinit.c
@@ -55,7 +55,14 @@ void __cpuinit bfin_dcache_init(struct cplb_entry *dcplb_tbl)
}
ctrl = bfin_read_DMEM_CONTROL();
- ctrl |= DMEM_CNTR;
+
+ /*
+ * Anomaly notes:
+ * 05000287 - We implement workaround #2 - Change the DMEM_CONTROL
+ * register, so that the port preferences for DAG0 and DAG1 are set
+ * to port B
+ */
+ ctrl |= DMEM_CNTR | PORT_PREF0 | (ANOMALY_05000287 ? PORT_PREF1 : 0);
bfin_write_DMEM_CONTROL(ctrl);
SSYNC();
}