public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] tegra2: Enable data cache
@ 2011-09-08 22:20 Simon Glass
  2011-09-09  0:25 ` Mike Frysinger
  0 siblings, 1 reply; 12+ messages in thread
From: Simon Glass @ 2011-09-08 22:20 UTC (permalink / raw)
  To: u-boot

This enables the data cache on Tegra2 boards.

Signed-off-by: Simon Glass <sjg@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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-09-21 21:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-08 22:20 [U-Boot] [PATCH] tegra2: Enable data cache Simon Glass
2011-09-09  0:25 ` Mike Frysinger
2011-09-09  0:30   ` Marek Vasut
2011-09-09  3:10     ` Simon Glass
2011-09-14 13:10   ` Aneesh V
2011-09-14 15:13     ` Simon Glass
2011-09-15  3:03       ` Mike Frysinger
2011-09-15 16:21         ` Albert ARIBAUD
2011-09-15 16:31           ` Mike Frysinger
2011-09-15 17:30             ` Albert ARIBAUD
2011-09-15 17:41               ` Mike Frysinger
2011-09-21 21:27                 ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox