board: STiH410-B2260: enable caches
authorPatrice Chotard <patrice.chotard@st.com>
Mon, 20 Mar 2017 14:21:36 +0000 (15:21 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 8 Apr 2017 13:26:49 +0000 (09:26 -0400)
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
board/st/stih410-b2260/board.c

index 1e7d4217d3f1761d793342f5793d070895478aee..92b06955936d043a2325bc5403e8ddc7193fb9a4 100644 (file)
@@ -24,6 +24,14 @@ int dram_init_banksize(void)
        return 0;
 }
 
+#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;