summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2009-01-05 13:35:31 +0100
committerMichal Simek <monstr@monstr.eu>2009-01-23 10:40:00 +0100
commite7f325be9edeb84bb457301776bbac1f7257dafc (patch)
tree1045e79a8e15020a991b0c99e016af1ef0755b24
parente9b737deb2c30125362d20e24170617476026e94 (diff)
downloadu-boot-imx-e7f325be9edeb84bb457301776bbac1f7257dafc.zip
u-boot-imx-e7f325be9edeb84bb457301776bbac1f7257dafc.tar.gz
u-boot-imx-e7f325be9edeb84bb457301776bbac1f7257dafc.tar.bz2
microblaze: Use cache functions (especially cache status)
in systems which are configured without flash
-rw-r--r--cpu/microblaze/cache.c3
-rw-r--r--lib_microblaze/board.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/cpu/microblaze/cache.c b/cpu/microblaze/cache.c
index 4b7866f..3b7c4d4 100644
--- a/cpu/microblaze/cache.c
+++ b/cpu/microblaze/cache.c
@@ -25,8 +25,6 @@
#include <common.h>
#include <asm/asm.h>
-#if defined(CONFIG_CMD_CACHE)
-
int dcache_status (void)
{
int i = 0;
@@ -62,4 +60,3 @@ void dcache_enable (void) {
void dcache_disable(void) {
MSRCLR(0x80);
}
-#endif
diff --git a/lib_microblaze/board.c b/lib_microblaze/board.c
index 732f81e..30d7641 100644
--- a/lib_microblaze/board.c
+++ b/lib_microblaze/board.c
@@ -137,11 +137,8 @@ void board_init (void)
}
puts ("SDRAM :\n");
-#if defined(CONFIG_CMD_CACHE)
- puts ("\tEnabling caches :\n");
printf ("\t\tIcache:%s\n", icache_status() ? "OK" : "FAIL");
printf ("\t\tDcache:%s\n", dcache_status() ? "OK" : "FAIL");
-#endif
printf ("\tU-Boot Start:0x%08x\n", TEXT_BASE);
#if defined(CONFIG_CMD_FLASH)