commit | 572134b3275742ed0ebbe5784a7a32e8da9a16f5 | [log] [tgz] |
---|---|---|
author | Aneesh V <aneesh@ti.com> | Thu Aug 11 04:35:43 2011 +0000 |
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | Sun Sep 04 11:36:16 2011 +0200 |
tree | 1f72c79bf8489eb148738a7aab89813c843317bb | |
parent | fffbb9745b32ee25615f4a10cab066faea687a6d [diff] [blame] |
omap: enable caches at system start-up Signed-off-by: Aneesh V <aneesh@ti.com>
diff --git a/arch/arm/cpu/armv7/omap4/board.c b/arch/arm/cpu/armv7/omap4/board.c index 8e90545..69a0ce5 100644 --- a/arch/arm/cpu/armv7/omap4/board.c +++ b/arch/arm/cpu/armv7/omap4/board.c
@@ -299,3 +299,11 @@ 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