summaryrefslogtreecommitdiff
path: root/cpu/arm_cortexa8
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/arm_cortexa8')
-rw-r--r--cpu/arm_cortexa8/mx51/generic.c8
-rw-r--r--cpu/arm_cortexa8/start.S3
2 files changed, 11 insertions, 0 deletions
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