am33xx: Enable D-CACHE on !CONFIG_SYS_DCACHE_OFF
authorTom Rini <trini@ti.com>
Fri, 23 Aug 2013 16:26:49 +0000 (12:26 -0400)
committerTom Rini <trini@ti.com>
Thu, 12 Dec 2013 19:54:12 +0000 (14:54 -0500)
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>
arch/arm/cpu/armv7/am33xx/board.c
board/siemens/common/board.c

index 803aa9c..c7dad66 100644 (file)
@@ -241,3 +241,11 @@ void s_init(void)
        sdram_init();
 #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 */
index 32d2ee4..7e8731b 100644 (file)
@@ -159,13 +159,4 @@ U_BOOT_CMD(
        "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 */