diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-08-07 19:21:47 (GMT) |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-10-23 09:03:50 (GMT) |
commit | 50f0d211912a648e31aa9123b4665a0444bb8ca9 (patch) | |
tree | 5e65f4d336a93e4be0f8a4602cd79827129bea8b /cpu | |
parent | 3c8798983403cb68a827d7a0d09b1134524a1b7d (diff) | |
download | u-boot-fsl-qoriq-50f0d211912a648e31aa9123b4665a0444bb8ca9.tar.xz |
Blackfin: unify cache handling code
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/blackfin/cpu.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/cpu/blackfin/cpu.c b/cpu/blackfin/cpu.c index 0c79932..9efd88e 100644 --- a/cpu/blackfin/cpu.c +++ b/cpu/blackfin/cpu.c @@ -14,46 +14,11 @@ #include <asm/blackfin.h> #include <asm/cplb.h> #include <asm/mach-common/bits/core.h> -#include <asm/mach-common/bits/mpu.h> #include <asm/mach-common/bits/trace.h> #include "cpu.h" #include "serial.h" -void icache_enable(void) -{ - bfin_write_IMEM_CONTROL(bfin_read_IMEM_CONTROL() | (IMC | ENICPLB)); - SSYNC(); -} - -void icache_disable(void) -{ - bfin_write_IMEM_CONTROL(bfin_read_IMEM_CONTROL() & ~(IMC | ENICPLB)); - SSYNC(); -} - -int icache_status(void) -{ - return bfin_read_IMEM_CONTROL() & ENICPLB; -} - -void dcache_enable(void) -{ - bfin_write_DMEM_CONTROL(bfin_read_DMEM_CONTROL() | (ACACHE_BCACHE | ENDCPLB | PORT_PREF0)); - SSYNC(); -} - -void dcache_disable(void) -{ - bfin_write_DMEM_CONTROL(bfin_read_DMEM_CONTROL() & ~(ACACHE_BCACHE | ENDCPLB | PORT_PREF0)); - SSYNC(); -} - -int dcache_status(void) -{ - return bfin_read_DMEM_CONTROL() & ENDCPLB; -} - __attribute__ ((__noreturn__)) void cpu_init_f(ulong bootflag, ulong loaded_from_ldr) { |