From 53f07baf9167201943561651ba9f3587f1b8edc9 Mon Sep 17 00:00:00 2001 From: Terry Lv Date: Fri, 11 Dec 2009 15:19:57 +0800 Subject: ENGR00119224: mmu support for mx51 3stack and mx51 bbg mmu support for mx51 3stack and mx51 bbg. Signed-off-by: Terry Lv --- cpu/arm_cortexa8/mx51/generic.c | 8 ++++++++ cpu/arm_cortexa8/start.S | 3 +++ 2 files changed, 11 insertions(+) (limited to 'cpu') diff --git a/cpu/arm_cortexa8/mx51/generic.c b/cpu/arm_cortexa8/mx51/generic.c index 2512081..a073de1 100644 --- a/cpu/arm_cortexa8/mx51/generic.c +++ b/cpu/arm_cortexa8/mx51/generic.c @@ -260,3 +260,11 @@ int cpu_eth_init(bd_t *bis) return rc; } +#if defined(CONFIG_ARCH_CPU_INIT) +int arch_cpu_init(void) +{ + icache_enable(); + dcache_enable(); + return 0; +} +#endif diff --git a/cpu/arm_cortexa8/start.S b/cpu/arm_cortexa8/start.S index 4983a47..4bbb56a 100644 --- a/cpu/arm_cortexa8/start.S +++ b/cpu/arm_cortexa8/start.S @@ -178,6 +178,9 @@ clbss_l: add r0, r0, #4 @ increment clear index pointer bne clbss_l @ keep clearing till at end +#ifdef CONFIG_ARCH_MMU + bl board_mmu_init +#endif ldr pc, _start_armboot @ jump to C code _start_armboot: .word start_armboot -- cgit v1.1