diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2011-11-01 08:16:37 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-11-04 22:06:37 +0100 |
commit | 867b96a5b7b1de56181b57bdfb25151c01a0fb3f (patch) | |
tree | 8c4bc2e2a7045510caa92a4ab67e5e11eee7acea /board/freescale | |
parent | 8d5d1516a21a509ded9836c2b6c111cc2b28aa4a (diff) | |
download | u-boot-imx-867b96a5b7b1de56181b57bdfb25151c01a0fb3f.zip u-boot-imx-867b96a5b7b1de56181b57bdfb25151c01a0fb3f.tar.gz u-boot-imx-867b96a5b7b1de56181b57bdfb25151c01a0fb3f.tar.bz2 |
mx31pdk: Enable D and I caches
Enable D and I caches on mx31pdk.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board/freescale')
-rw-r--r-- | board/freescale/mx31pdk/mx31pdk.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c index 9f8bc53..1d7b4f6 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; } |