diff options
| author | Fabio Estevam <[email protected]> | 2011-11-01 08:16:37 +0000 |
|---|---|---|
| committer | Albert ARIBAUD <[email protected]> | 2011-11-04 22:06:37 +0100 |
| commit | 867b96a5b7b1de56181b57bdfb25151c01a0fb3f (patch) | |
| tree | 8c4bc2e2a7045510caa92a4ab67e5e11eee7acea | |
| parent | 8d5d1516a21a509ded9836c2b6c111cc2b28aa4a (diff) | |
mx31pdk: Enable D and I caches
Enable D and I caches on mx31pdk.
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Stefano Babic <[email protected]>
| -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 9f8bc53e711..1d7b4f6d99b 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; } |
