summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-08-23 12:26:49 -0400
committerTom Rini <trini@ti.com>2013-12-12 14:54:12 -0500
commit12115c6ad3b91e60b874afd29ce041ef552ed1e1 (patch)
treec82ac6ab00845ef368417990cd344383f7322be5 /arch/arm
parenta5a42eec8ed64cbc72d2e59199819e48f904e38f (diff)
downloadu-boot-imx-12115c6ad3b91e60b874afd29ce041ef552ed1e1.zip
u-boot-imx-12115c6ad3b91e60b874afd29ce041ef552ed1e1.tar.gz
u-boot-imx-12115c6ad3b91e60b874afd29ce041ef552ed1e1.tar.bz2
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv7/am33xx/board.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/board.c b/arch/arm/cpu/armv7/am33xx/board.c
index 803aa9c..c7dad66 100644
--- a/arch/arm/cpu/armv7/am33xx/board.c
+++ b/arch/arm/cpu/armv7/am33xx/board.c
@@ -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 */