From: Mike Frysinger Date: Thu, 7 Aug 2008 22:40:13 +0000 (-0400) Subject: Blackfin: check cache bits, not cplb bits X-Git-Tag: v2009.01-rc1~102^2~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0f9a8819416ba40a53de50af148847a0e508f84d;p=u-boot Blackfin: check cache bits, not cplb bits Signed-off-by: Mike Frysinger --- 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; }