summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/zynq
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-01-03 08:32:35 (GMT)
committerMichal Simek <michal.simek@xilinx.com>2014-02-19 08:41:20 (GMT)
commit673ba27a8560b0aea993109d5c490446a50cb331 (patch)
treef09d9f6760588c0b804a62b2b1ee24c9a6017f68 /arch/arm/cpu/armv7/zynq
parent32cccecd06871f990d69779440ca498f3ebb125f (diff)
downloadu-boot-fsl-qoriq-673ba27a8560b0aea993109d5c490446a50cb331.tar.xz
zynq: Enable dcache support
Enable dcache. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/cpu/armv7/zynq')
-rw-r--r--arch/arm/cpu/armv7/zynq/cpu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/zynq/cpu.c b/arch/arm/cpu/armv7/zynq/cpu.c
index 9af340e..c771759 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