]> git.sur5r.net Git - u-boot/commitdiff
Blackfin: check cache bits, not cplb bits
authorMike Frysinger <vapier@gentoo.org>
Thu, 7 Aug 2008 22:40:13 +0000 (18:40 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 23 Oct 2008 09:03:50 +0000 (05:03 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
lib_blackfin/cache.c

index 41e2a62d12d3d587b9d42e5e0f9c761e0df341b9..870c5bfbac748aef7d104526d9db75fd2b0a28b1 100644 (file)
@@ -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;
 }