aboutsummaryrefslogtreecommitdiff
path: root/include/configs/microblaze-generic.h
diff options
context:
space:
mode:
authorMichal Simek2020-11-04 15:58:04 +0100
committerMichal Simek2020-11-20 10:42:53 +0100
commit7556fa09e0ec52a27e05206ada4aa5685e01f3c1 (patch)
tree498561c01010b7e99e29ca2b1a623029658fa4e4 /include/configs/microblaze-generic.h
parent91218f4c242dfc7cb8230efd3966f01619e87804 (diff)
microblaze: Simplify cache handling
Enable caches by default. For now just simplify config file but it should be read from DT or PVRs. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/configs/microblaze-generic.h')
-rw-r--r--include/configs/microblaze-generic.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index d5b2bd85660..05ea64b1631 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -69,20 +69,8 @@
# define CONFIG_SYS_MAX_FLASH_SECT 512
#endif /* !FLASH */
-#define XILINX_USE_ICACHE 1
-#define XILINX_USE_DCACHE 1
-
-#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
+#define CONFIG_ICACHE
+#define CONFIG_DCACHE
#ifndef XILINX_DCACHE_BYTE_SIZE
#define XILINX_DCACHE_BYTE_SIZE 32768