From: Fabio Estevam Date: Tue, 1 Nov 2011 08:16:37 +0000 (+0000) Subject: mx31pdk: Enable D and I caches X-Git-Tag: v2011.12-rc1~228^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=867b96a5b7b1de56181b57bdfb25151c01a0fb3f;p=u-boot mx31pdk: Enable D and I caches Enable D and I caches on mx31pdk. Signed-off-by: Fabio Estevam Acked-by: Stefano Babic --- diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c index 9f8bc53e71..1d7b4f6d99 100644 --- a/board/freescale/mx31pdk/mx31pdk.c +++ b/board/freescale/mx31pdk/mx31pdk.c @@ -71,11 +71,19 @@ int board_early_init_f(void) return 0; } +void enable_caches(void) +{ + icache_enable(); + dcache_enable(); +} + int board_init(void) { /* adress of boot parameters */ gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; + enable_caches(); + return 0; }