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/arm1136/mx35 | |
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/arm1136/mx35')
-rw-r--r-- | cpu/arm1136/mx35/generic.c | 9 |
1 files changed, 9 insertions, 0 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 |