[U-Boot] board: STiH410-B2260: enable caches

patrice.chotard at st.com patrice.chotard at st.com
Mon Mar 20 14:21:36 UTC 2017


From: Patrice Chotard <patrice.chotard at st.com>

Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
---
 board/st/stih410-b2260/board.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/board/st/stih410-b2260/board.c b/board/st/stih410-b2260/board.c
index 363c016..590e8f0 100644
--- a/board/st/stih410-b2260/board.c
+++ b/board/st/stih410-b2260/board.c
@@ -25,6 +25,14 @@ void dram_init_banksize(void)
 	gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
 }
 
+#ifndef CONFIG_SYS_DCACHE_OFF
+void enable_caches(void)
+{
+	/* Enable D-cache. I-cache is already enabled in start.S */
+	dcache_enable();
+}
+#endif
+
 int board_init(void)
 {
 	return 0;
-- 
1.9.1



More information about the U-Boot mailing list