diff options
author | trem <tremyfr@yahoo.fr> | 2013-06-14 18:21:21 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2013-06-26 17:34:21 +0200 |
commit | 6247c4653b54931a44a0c2789063ac282bd77505 (patch) | |
tree | 75e8aa71460e2fffc99ad5ef4b14c9eaaa030d83 /arch/arm/cpu | |
parent | c1747970612e36148e7f7a51872c652ed47697f4 (diff) | |
download | u-boot-imx-6247c4653b54931a44a0c2789063ac282bd77505.zip u-boot-imx-6247c4653b54931a44a0c2789063ac282bd77505.tar.gz u-boot-imx-6247c4653b54931a44a0c2789063ac282bd77505.tar.bz2 |
mx27: add function enable_caches
Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r-- | arch/arm/cpu/arm926ejs/mx27/generic.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c index 41bb84b..bffbadd 100644 --- a/arch/arm/cpu/arm926ejs/mx27/generic.c +++ b/arch/arm/cpu/arm926ejs/mx27/generic.c @@ -380,3 +380,11 @@ void mx27_sd2_init_pins(void) } #endif /* CONFIG_MXC_MMC */ + +#ifndef CONFIG_SYS_DCACHE_OFF +void enable_caches(void) +{ + /* Enable D-cache. I-cache is already enabled in start.S */ + dcache_enable(); +} +#endif /* CONFIG_SYS_DCACHE_OFF */ |