From: Stefan Roese Date: Tue, 18 Aug 2015 07:27:19 +0000 (+0200) Subject: arm: spear: Enable caches on SPEAr X-Git-Tag: v2015.10-rc3~71 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f49cc22f5c106c0b975182293200fe4cd53f371b;p=u-boot arm: spear: Enable caches on SPEAr The designware ethernet driver supports d-cache now. So there is nothing stopping us now to enable the caches completely on SPEAr. Tested on SPEAr600 x600 board. Signed-off-by: Stefan Roese Acked-by: Viresh Kumar Cc: Vipin Kumar --- diff --git a/arch/arm/cpu/arm926ejs/spear/cpu.c b/arch/arm/cpu/arm926ejs/spear/cpu.c index 3037084b29..e39cdbaa6e 100644 --- a/arch/arm/cpu/arm926ejs/spear/cpu.c +++ b/arch/arm/cpu/arm926ejs/spear/cpu.c @@ -56,6 +56,16 @@ int arch_cpu_init(void) return 0; } +void enable_caches(void) +{ +#ifndef CONFIG_SYS_ICACHE_OFF + icache_enable(); +#endif +#ifndef CONFIG_SYS_DCACHE_OFF + dcache_enable(); +#endif +} + #ifdef CONFIG_DISPLAY_CPUINFO int print_cpuinfo(void) {