summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily Khoruzhick <anarsoul@gmail.com>2016-03-20 18:37:09 -0700
committerTom Rini <trini@konsulko.com>2016-03-27 09:13:01 -0400
commitf9e8a98f16793ae77998b8a81c306ef9190fc1a7 (patch)
tree5adef08d3ea61a8e574c73db519a3b66199678df
parent59deb7fe8d23c8ec2b659d99323ec4a2ec19148a (diff)
downloadu-boot-f9e8a98f16793ae77998b8a81c306ef9190fc1a7.tar.gz
u-boot-f9e8a98f16793ae77998b8a81c306ef9190fc1a7.tar.bz2
u-boot-f9e8a98f16793ae77998b8a81c306ef9190fc1a7.zip
zipitz2: enable caches
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>
-rw-r--r--board/zipitz2/zipitz2.c4
-rw-r--r--include/configs/zipitz2.h3
2 files changed, 1 insertions, 6 deletions
diff --git a/board/zipitz2/zipitz2.c b/board/zipitz2/zipitz2.c
index aefbeee894..d3ca939238 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 52a36b7e54..5200e02191 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