summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-08-07 18:40:13 -0400
committerMike Frysinger <vapier@gentoo.org>2008-10-23 05:03:50 -0400
commit0f9a8819416ba40a53de50af148847a0e508f84d (patch)
tree4dd53152a673f90f219b74cc8f5958c56f75eea4
parent2c1ea9e370cb72dd6a5aa32338e87a8a1f77bd76 (diff)
Blackfin: check cache bits, not cplb bits
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--lib_blackfin/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_blackfin/cache.c b/lib_blackfin/cache.c
index 41e2a62d12..870c5bfbac 100644
--- a/lib_blackfin/cache.c
+++ b/lib_blackfin/cache.c
@@ -40,7 +40,7 @@ void icache_disable(void)
int icache_status(void)
{
- return bfin_read_IMEM_CONTROL() & ENICPLB;
+ return bfin_read_IMEM_CONTROL() & IMC;
}
void dcache_enable(void)
@@ -57,5 +57,5 @@ void dcache_disable(void)
int dcache_status(void)
{
- return bfin_read_DMEM_CONTROL() & ENDCPLB;
+ return bfin_read_DMEM_CONTROL() & ACACHE_BCACHE;
}