]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
zynq: Enable dcache support
authorMichal Simek <michal.simek@xilinx.com>
Fri, 3 Jan 2014 08:32:35 +0000 (09:32 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 19 Feb 2014 08:41:20 +0000 (09:41 +0100)
Enable dcache.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/cpu/armv7/zynq/cpu.c

index 9af340e75ed052fe4a6701f5c77646d067eb6c60..c771759ab801d99b0eb458d66305e65f13ca59da 100644 (file)
@@ -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