From: Michal Simek Date: Fri, 3 Jan 2014 08:32:35 +0000 (+0100) Subject: zynq: Enable dcache support X-Git-Tag: v2014.04-rc2~127^2~2^2~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=673ba27a8560b0aea993109d5c490446a50cb331;p=u-boot 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