summaryrefslogtreecommitdiff
path: root/include/configs/microblaze-generic.h
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2009-01-05 13:29:32 +0100
committerMichal Simek <monstr@monstr.eu>2009-01-23 10:39:59 +0100
commite9b737deb2c30125362d20e24170617476026e94 (patch)
tree5343cda3a837595ed07fbefb8402a96936bcbe1d /include/configs/microblaze-generic.h
parentb4f8dda35bfad447b4106828232705b2e878d168 (diff)
downloadu-boot-imx-e9b737deb2c30125362d20e24170617476026e94.zip
u-boot-imx-e9b737deb2c30125362d20e24170617476026e94.tar.gz
u-boot-imx-e9b737deb2c30125362d20e24170617476026e94.tar.bz2
microblaze: Add cache flush
Diffstat (limited to 'include/configs/microblaze-generic.h')
-rw-r--r--include/configs/microblaze-generic.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index 867f885..4c6cc9f 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -194,6 +194,18 @@
#define CONFIG_DOS_PARTITION
#endif
+#if defined(XILINX_USE_ICACHE)
+ #define CONFIG_ICACHE
+#else
+ #undef CONFIG_ICACHE
+#endif
+
+#if defined(XILINX_USE_DCACHE)
+ #define CONFIG_DCACHE
+#else
+ #undef CONFIG_DCACHE
+#endif
+
/*
* BOOTP options
*/
@@ -208,11 +220,16 @@
#include <config_cmd_default.h>
#define CONFIG_CMD_ASKENV
-#define CONFIG_CMD_CACHE
#define CONFIG_CMD_IRQ
#define CONFIG_CMD_MFSL
#define CONFIG_CMD_ECHO
+#if defined(CONFIG_DCACHE) || defined(CONFIG_ICACHE)
+ #define CONFIG_CMD_CACHE
+#else
+ #undef CONFIG_CMD_CACHE
+#endif
+
#ifndef CONFIG_SYS_ENET
#undef CONFIG_CMD_NET
#else