Explorar o código

board: STiH410-B2260: enable caches

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Patrice Chotard %!s(int64=8) %!d(string=hai) anos
pai
achega
4c4da9fbff
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      board/st/stih410-b2260/board.c

+ 8 - 0
board/st/stih410-b2260/board.c

@@ -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;