microblaze: Use cache functions (especially cache status)
in systems which are configured without flash
This commit is contained in:
parent
e9b737deb2
commit
e7f325be9e
|
@ -25,8 +25,6 @@
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <asm/asm.h>
|
#include <asm/asm.h>
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_CACHE)
|
|
||||||
|
|
||||||
int dcache_status (void)
|
int dcache_status (void)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -62,4 +60,3 @@ void dcache_enable (void) {
|
||||||
void dcache_disable(void) {
|
void dcache_disable(void) {
|
||||||
MSRCLR(0x80);
|
MSRCLR(0x80);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
|
@ -137,11 +137,8 @@ void board_init (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
puts ("SDRAM :\n");
|
puts ("SDRAM :\n");
|
||||||
#if defined(CONFIG_CMD_CACHE)
|
|
||||||
puts ("\tEnabling caches :\n");
|
|
||||||
printf ("\t\tIcache:%s\n", icache_status() ? "OK" : "FAIL");
|
printf ("\t\tIcache:%s\n", icache_status() ? "OK" : "FAIL");
|
||||||
printf ("\t\tDcache:%s\n", dcache_status() ? "OK" : "FAIL");
|
printf ("\t\tDcache:%s\n", dcache_status() ? "OK" : "FAIL");
|
||||||
#endif
|
|
||||||
printf ("\tU-Boot Start:0x%08x\n", TEXT_BASE);
|
printf ("\tU-Boot Start:0x%08x\n", TEXT_BASE);
|
||||||
|
|
||||||
#if defined(CONFIG_CMD_FLASH)
|
#if defined(CONFIG_CMD_FLASH)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user