Skip to contentSkip to conversation

arm: Enable dcache in jadecpu

PATCH New Matthias Weisser 1 participant 2 messages Dec 3, 2010 – Dec 13, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: Enable dcache in jadecpu

Enabling d cache leads to greatly improved image decompression times.

---
 board/syteco/jadecpu/jadecpu.c |    1 +
 include/configs/jadecpu.h      |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
board/syteco/jadecpu/jadecpu.c +1 -0
index 69476f8..4919e06 100644
@@ -44,6 +44,7 @@ int board_init(void)
 	gd->bd->bi_boot_params = PHYS_SDRAM + PHYS_SDRAM_SIZE - 0x10000;
 
 	icache_enable();
+	dcache_enable();
 
 	return 0;
 }
include/configs/jadecpu.h +1 -0
index c119392..5a41c89 100644
@@ -129,6 +129,7 @@
 #define CONFIG_CMD_FAT		1
 #define CONFIG_CMD_PING		1
 #define CONFIG_CMD_USB		1
+#define CONFIG_CMD_CACHE
 
 #define CONFIG_SYS_HUSH_PARSER
 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 arm: Enable dcache in jadecpu

Am 03.12.2010 09:47, schrieb Matthias Weisser:

Quoted 1 line

Enabling d cache leads to greatly improved image decompression times.

Please do not apply this patch as it causes some commands to fail when dcache is enabled. I will investigate the problem a send a working patch.

Matthias