From: trem Date: Fri, 14 Jun 2013 16:21:21 +0000 (+0200) Subject: mx27: add function enable_caches X-Git-Tag: v2013.07-rc3~4^2~11^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6247c4653b54931a44a0c2789063ac282bd77505;p=u-boot mx27: add function enable_caches Signed-off-by: Philippe Reynes --- diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c index 41bb84bb6e..bffbadd7e2 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 */