瀏覽代碼

am33xx: Enable D-CACHE on !CONFIG_SYS_DCACHE_OFF

Test on Beaglebone white over cpsw, usb ether and SD card (read and
write), performance increased, crc32 of data matches.

Signed-off-by: Tom Rini <trini@ti.com>
Tom Rini 11 年之前
父節點
當前提交
12115c6ad3
共有 2 個文件被更改,包括 8 次插入9 次删除
  1. 8 0
      arch/arm/cpu/armv7/am33xx/board.c
  2. 0 9
      board/siemens/common/board.c

+ 8 - 0
arch/arm/cpu/armv7/am33xx/board.c

@@ -241,3 +241,11 @@ void s_init(void)
 	sdram_init();
 	sdram_init();
 #endif
 #endif
 }
 }
+
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+	/* Enable D-cache. I-cache is already enabled in start.S */
+	dcache_enable();
+}
+#endif /* !CONFIG_SYS_DCACHE_OFF */

+ 0 - 9
board/siemens/common/board.c

@@ -159,13 +159,4 @@ U_BOOT_CMD(
 	"Sends U-Boot into infinite loop",
 	"Sends U-Boot into infinite loop",
 	""
 	""
 );
 );
-
-#ifndef CONFIG_SYS_DCACHE_OFF
-void enable_caches(void)
-{
-	printf("Enable d-cache\n");
-	/* Enable D-cache. I-cache is already enabled in start.S */
-	dcache_enable();
-}
-#endif /* CONFIG_SYS_DCACHE_OFF */
 #endif /* !CONFIG_SPL_BUILD */
 #endif /* !CONFIG_SPL_BUILD */