From: Aneesh V Date: Thu, 11 Aug 2011 04:35:43 +0000 (+0000) Subject: omap: enable caches at system start-up X-Git-Tag: v2011.09-rc1~68^2~60 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=13d4f9bd7477b3b409f3e267b3b3d6fed5bd3e30;p=oweals%2Fu-boot.git omap: enable caches at system start-up Signed-off-by: Aneesh V --- diff --git a/arch/arm/cpu/armv7/omap3/board.c b/arch/arm/cpu/armv7/omap3/board.c index bce3ee695f..0448bc93ff 100644 --- a/arch/arm/cpu/armv7/omap3/board.c +++ b/arch/arm/cpu/armv7/omap3/board.c @@ -402,3 +402,11 @@ void v7_outer_cache_disable(void) omap3_update_aux_cr(0, 0x2); } #endif + +#ifndef CONFIG_SYS_DCACHE_OFF +void enable_caches(void) +{ + /* Enable D-cache. I-cache is already enabled in start.S */ + dcache_enable(); +} +#endif diff --git a/arch/arm/cpu/armv7/omap4/board.c b/arch/arm/cpu/armv7/omap4/board.c index 8e9054594d..69a0ce5513 100644 --- a/arch/arm/cpu/armv7/omap4/board.c +++ b/arch/arm/cpu/armv7/omap4/board.c @@ -299,3 +299,11 @@ void v7_outer_cache_disable(void) set_pl310_ctrl_reg(0); } #endif + +#ifndef CONFIG_SYS_DCACHE_OFF +void enable_caches(void) +{ + /* Enable D-cache. I-cache is already enabled in start.S */ + dcache_enable(); +} +#endif