diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-08-07 18:40:13 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-10-23 05:03:50 -0400 |
commit | 0f9a8819416ba40a53de50af148847a0e508f84d (patch) | |
tree | 4dd53152a673f90f219b74cc8f5958c56f75eea4 /lib_blackfin/cache.c | |
parent | 2c1ea9e370cb72dd6a5aa32338e87a8a1f77bd76 (diff) | |
download | u-boot-imx-0f9a8819416ba40a53de50af148847a0e508f84d.zip u-boot-imx-0f9a8819416ba40a53de50af148847a0e508f84d.tar.gz u-boot-imx-0f9a8819416ba40a53de50af148847a0e508f84d.tar.bz2 |
Blackfin: check cache bits, not cplb bits
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib_blackfin/cache.c')
-rw-r--r-- | lib_blackfin/cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_blackfin/cache.c b/lib_blackfin/cache.c index 41e2a62..870c5bf 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; } |