diff options
author | Wolfgang Denk <wd@denx.de> | 2007-05-16 00:11:53 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-05-16 00:11:53 +0200 |
commit | d6022573746856861f86f4f514dd1c1c14aaec9a (patch) | |
tree | 5d07b2e0f2acdb4e640aeb886f127c7a5c6c47b6 /cpu/microblaze/cache.c | |
parent | e73865897fe9e2b111d7f9ef32fe428438771b11 (diff) | |
parent | e69f66c6ebe82bbbd1da766bc4eda40ec7ee5af1 (diff) | |
download | u-boot-imx-d6022573746856861f86f4f514dd1c1c14aaec9a.zip u-boot-imx-d6022573746856861f86f4f514dd1c1c14aaec9a.tar.gz u-boot-imx-d6022573746856861f86f4f514dd1c1c14aaec9a.tar.bz2 |
Merge with /home/wd/git/u-boot/custodian/u-boot-microblaze
Diffstat (limited to 'cpu/microblaze/cache.c')
-rwxr-xr-x[-rw-r--r--] | cpu/microblaze/cache.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cpu/microblaze/cache.c b/cpu/microblaze/cache.c index fc388eb..4f36a84 100644..100755 --- a/cpu/microblaze/cache.c +++ b/cpu/microblaze/cache.c @@ -23,6 +23,7 @@ */ #include <common.h> +#include <asm/asm.h> #if (CONFIG_COMMANDS & CFG_CMD_CACHE) @@ -45,4 +46,20 @@ int icache_status (void) __asm__ __volatile__ ("and %0,%0,%1"::"r" (i), "r" (mask):"memory"); return i; } + +void icache_enable (void) { + MSRSET(0x20); +} + +void icache_disable(void) { + MSRCLR(0x20); +} + +void dcache_enable (void) { + MSRSET(0x80); +} + +void dcache_disable(void) { + MSRCLR(0x80); +} #endif |