zipitz2: enable caches
authorVasily Khoruzhick <anarsoul@gmail.com>
Mon, 21 Mar 2016 01:37:09 +0000 (18:37 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 27 Mar 2016 13:13:01 +0000 (09:13 -0400)
It speeds up loading kernel from SD or USB a lot.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Marek Vasut <marex@denx.de>
board/zipitz2/zipitz2.c
include/configs/zipitz2.h

index aefbeee89433cdb663a75653e176d861921aee03..d3ca939238831c0b442bc2fa528a7bf2f3c9b765 100644 (file)
@@ -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;
 
index 52a36b7e547d0087af3046ac63fb1f84ffd4fb89..5200e021916809fc3056095179602c6a518326ad 100644 (file)
@@ -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