diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-01-03 09:32:35 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-02-19 09:41:20 +0100 |
commit | 673ba27a8560b0aea993109d5c490446a50cb331 (patch) | |
tree | f09d9f6760588c0b804a62b2b1ee24c9a6017f68 /arch/arm/cpu/armv7 | |
parent | 32cccecd06871f990d69779440ca498f3ebb125f (diff) | |
download | u-boot-imx-673ba27a8560b0aea993109d5c490446a50cb331.zip u-boot-imx-673ba27a8560b0aea993109d5c490446a50cb331.tar.gz u-boot-imx-673ba27a8560b0aea993109d5c490446a50cb331.tar.bz2 |
zynq: Enable dcache support
Enable dcache.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/arm/cpu/armv7')
-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 |