From: Marek Vasut Date: Thu, 15 Mar 2012 18:33:23 +0000 (+0000) Subject: i.MX28: Enable caches by default X-Git-Tag: v2012.04-rc1~19^2~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=345cd3584cd90288abd4256678fbfa7d2443bd00;p=u-boot i.MX28: Enable caches by default Signed-off-by: Marek Vasut Cc: Stefano Babic --- diff --git a/arch/arm/cpu/arm926ejs/mx28/mx28.c b/arch/arm/cpu/arm926ejs/mx28/mx28.c index 9bfd83bab9..cf6d4e9bd4 100644 --- a/arch/arm/cpu/arm926ejs/mx28/mx28.c +++ b/arch/arm/cpu/arm926ejs/mx28/mx28.c @@ -63,6 +63,16 @@ void reset_cpu(ulong ignored) ; } +void enable_caches(void) +{ +#ifndef CONFIG_SYS_ICACHE_OFF + icache_enable(); +#endif +#ifndef CONFIG_SYS_DCACHE_OFF + dcache_enable(); +#endif +} + int mx28_wait_mask_set(struct mx28_register_32 *reg, uint32_t mask, int timeout) { while (--timeout) {