diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-01-03 08:32:35 (GMT) |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-02-19 08:41:20 (GMT) |
commit | 673ba27a8560b0aea993109d5c490446a50cb331 (patch) | |
tree | f09d9f6760588c0b804a62b2b1ee24c9a6017f68 /arch | |
parent | 32cccecd06871f990d69779440ca498f3ebb125f (diff) | |
download | u-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')
-rw-r--r-- | arch/arm/cpu/armv7/zynq/cpu.c | 8 |
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 |