]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mx31pdk: Enable D and I caches
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 1 Nov 2011 08:16:37 +0000 (08:16 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 4 Nov 2011 21:06:37 +0000 (22:06 +0100)
Enable D and I caches on mx31pdk.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
board/freescale/mx31pdk/mx31pdk.c

index 9f8bc53e711c02fd40ed9f2b58b35417a24a277a..1d7b4f6d99be9f43866d046ba6be2a00a4dab3de 100644 (file)
@@ -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;
 }