[U-Boot] [PATCH] tegra2: Enable data cache

Simon Glass sjg at chromium.org
Fri Sep 9 00:20:16 CEST 2011


This enables the data cache on Tegra2 boards.

Signed-off-by: Simon Glass <sjg at chromium.org>
---
 board/nvidia/common/board.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/board/nvidia/common/board.c b/board/nvidia/common/board.c
index 160dac8..031cc68 100644
--- a/board/nvidia/common/board.c
+++ b/board/nvidia/common/board.c
@@ -307,3 +307,11 @@ int board_mmc_getcd(u8 *cd, struct mmc *mmc)
 	return 0;
 }
 #endif
+
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+	/* Enable D-cache. I-cache is already enabled in start.S */
+	dcache_enable();
+}
+#endif
-- 
1.7.3.1



More information about the U-Boot mailing list