From: Michal Simek Date: Fri, 3 Jan 2014 08:32:35 +0000 (+0100) Subject: zynq: Enable dcache support X-Git-Tag: v2014.04-rc2~72^2~18^2~17 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=673ba27a8560b0aea993109d5c490446a50cb331;p=oweals%2Fu-boot.git zynq: Enable dcache support Enable dcache. Signed-off-by: Michal Simek --- diff --git a/arch/arm/cpu/armv7/zynq/cpu.c b/arch/arm/cpu/armv7/zynq/cpu.c index 9af340e75e..c771759ab8 100644 --- a/arch/arm/cpu/armv7/zynq/cpu.c +++ b/arch/arm/cpu/armv7/zynq/cpu.c @@ -46,3 +46,11 @@ void reset_cpu(ulong addr) while (1) ; } + +#ifndef CONFIG_SYS_DCACHE_OFF +void enable_caches(void) +{ + /* Enable D-cache. I-cache is already enabled in start.S */ + dcache_enable(); +} +#endif