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

Message ID 1490019696-14327-1-git-send-email-patrice.chotard@st.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Patrice CHOTARD March 20, 2017, 2:21 p.m.
From: Patrice Chotard <patrice.chotard@st.com>

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

Comments

Tom Rini April 9, 2017, 1:14 a.m. | #1
On Mon, Mar 20, 2017 at 03:21:36PM +0100, Patrice Chotard wrote:

> From: Patrice Chotard <patrice.chotard@st.com>
> 
> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>

Applied to u-boot/master, thanks!

Patch

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;