[U-Boot] [PATCH 10/11] zipitz2: enable caches
Vasily Khoruzhick
anarsoul at gmail.com
Mon Mar 21 02:37:09 CET 2016
It speeds up loading kernel from SD or USB a lot.
Signed-off-by: Vasily Khoruzhick <anarsoul at gmail.com>
---
board/zipitz2/zipitz2.c | 4 ----
include/configs/zipitz2.h | 3 +--
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/board/zipitz2/zipitz2.c b/board/zipitz2/zipitz2.c
index aefbeee..d3ca939 100644
--- a/board/zipitz2/zipitz2.c
+++ b/board/zipitz2/zipitz2.c
@@ -30,10 +30,6 @@ inline void lcd_start(void) {};
*/
int board_init(void)
{
- /* We have RAM, disable cache */
- dcache_disable();
- icache_disable();
-
/* arch number of Z2 */
gd->bd->bi_arch_number = MACH_TYPE_ZIPIT2;
diff --git a/include/configs/zipitz2.h b/include/configs/zipitz2.h
index 52a36b7..5200e02 100644
--- a/include/configs/zipitz2.h
+++ b/include/configs/zipitz2.h
@@ -27,8 +27,6 @@
#define CONFIG_ENV_ADDR 0x40000
#define CONFIG_ENV_SIZE 0x10000
-#define CONFIG_SYS_DCACHE_OFF
-
#define CONFIG_SYS_MALLOC_LEN (128*1024)
#define CONFIG_ARCH_CPU_INIT
@@ -65,6 +63,7 @@
#define CONFIG_CMD_MMC
#define CONFIG_CMD_SPI
#define CONFIG_CMD_USB
+#define CONFIG_CMD_CACHE
/*
* MMC Card Configuration
--
2.7.2
More information about the U-Boot
mailing list