diff options
author | Fred Fan <r01011@freescale.com> | 2009-11-19 16:43:08 +0800 |
---|---|---|
committer | Fred Fan <r01011@freescale.com> | 2009-11-30 14:07:16 +0800 |
commit | 3f86cf9693f8b98c44999e81d4067943c634b421 (patch) | |
tree | 53cc3cd0be7e9087b45d831abd563507ee4ec90f /cpu | |
parent | 9a17d28d0b86b38a0b1a4e361cadbd0cb3628953 (diff) | |
download | u-boot-imx-3f86cf9693f8b98c44999e81d4067943c634b421.zip u-boot-imx-3f86cf9693f8b98c44999e81d4067943c634b421.tar.gz u-boot-imx-3f86cf9693f8b98c44999e81d4067943c634b421.tar.bz2 |
ENGR00118579 Enable MMUrel_imx_2.6.31_09.12.00_RC1
To enable MMU, it is porting from redboot.
Enable MMU and enable I/D cache.
Signed-off-by:Fred Fan <r01011@freescale.com>
Diffstat (limited to 'cpu')
-rw-r--r-- | cpu/arm1136/mx35/generic.c | 9 | ||||
-rw-r--r-- | cpu/arm1136/start.S | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/cpu/arm1136/mx35/generic.c b/cpu/arm1136/mx35/generic.c index 31bcbec..fbe9084 100644 --- a/cpu/arm1136/mx35/generic.c +++ b/cpu/arm1136/mx35/generic.c @@ -372,3 +372,12 @@ int cpu_eth_init(bd_t *bis) #endif return rc; } + +#if defined(CONFIG_ARCH_CPU_INIT) +int arch_cpu_init(void) +{ + icache_enable(); + dcache_enable(); + return 0; +} +#endif diff --git a/cpu/arm1136/start.S b/cpu/arm1136/start.S index b1d7087..2da16e7 100644 --- a/cpu/arm1136/start.S +++ b/cpu/arm1136/start.S @@ -251,7 +251,9 @@ clbss_l:str r2, [r0] /* clear loop... */ cmp r0, r1 bne clbss_l #endif - +#ifdef CONFIG_ARCH_MMU + bl board_mmu_init +#endif ldr pc, _start_armboot #ifdef CONFIG_NAND_SPL |