[U-Boot] [PATCH 1/2] zynq: Do not explicitely enable icache

icache is already enabled by default.
Signed-off-by: Michal Simek michal.simek@xilinx.com ---
board/xilinx/zynq/board.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 5119c09..7c1632f 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.c @@ -49,8 +49,6 @@ int board_init(void) } #endif
- icache_enable(); - #ifdef CONFIG_FPGA fpga_init(); fpga_add(fpga_xilinx, &fpga); -- 1.8.2.3

Enable dcache.
Signed-off-by: Michal Simek michal.simek@xilinx.com ---
arch/arm/cpu/armv7/zynq/cpu.c | 8 ++++++++ 1 file changed, 8 insertions(+)
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 -- 1.8.2.3

On Friday 03 January 2014, Michal Simek wrote:
icache is already enabled by default.
Signed-off-by: Michal Simek michal.simek@xilinx.com
board/xilinx/zynq/board.c | 2 -- 1 file changed, 2 deletions(-)
You had me confused for a bit. Please mark u-boot patches as such when you send them to the kernel mailing list, and vice-versa.
Arnd

On Fri, Jan 03, 2014 at 01:52:51PM +0100, Arnd Bergmann wrote:
On Friday 03 January 2014, Michal Simek wrote:
icache is already enabled by default.
Signed-off-by: Michal Simek michal.simek@xilinx.com
board/xilinx/zynq/board.c | 2 -- 1 file changed, 2 deletions(-)
You had me confused for a bit. Please mark u-boot patches as such when you send them to the kernel mailing list, and vice-versa.
Better still, they shouldn't be sent to the kernel mailing lists in the first place - they're off-topic here.
participants (3)
-
Arnd Bergmann
-
Michal Simek
-
Russell King - ARM Linux