diff options
author | Terry Lv <r65388@freescale.com> | 2009-12-11 15:19:57 +0800 |
---|---|---|
committer | Terry Lv <r65388@freescale.com> | 2009-12-11 15:19:57 +0800 |
commit | 53f07baf9167201943561651ba9f3587f1b8edc9 (patch) | |
tree | d690a1e5f115cec6bffa1b6e8f051ca3aa083ea0 /cpu | |
parent | 1ee27e13d6fdb19d297f8d1d6d3d7d8449d0361e (diff) | |
download | u-boot-imx-53f07baf9167201943561651ba9f3587f1b8edc9.zip u-boot-imx-53f07baf9167201943561651ba9f3587f1b8edc9.tar.gz u-boot-imx-53f07baf9167201943561651ba9f3587f1b8edc9.tar.bz2 |
ENGR00119224: mmu support for mx51 3stack and mx51 bbg
mmu support for mx51 3stack and mx51 bbg.
Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/arm_cortexa8/mx51/generic.c | 8 | ||||
-rw-r--r-- | cpu/arm_cortexa8/start.S | 3 |
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 |