From: Wu, Josh Date: Mon, 19 May 2014 11:51:28 +0000 (+0800) Subject: ARMv7: at91: enable ICache and DCache. X-Git-Tag: v2014.07~74^2~7^2~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d337a09c30a04d14e2c35b7517105c6b2e3e48dd;p=oweals%2Fu-boot.git ARMv7: at91: enable ICache and DCache. For at91 armv7 SoC (SAMA5D3x), only LCD and macb used DMA. Now as the lcd and macb driver already support dcache. So we can enable dcache now. Also we can enable icache without any problem. Signed-off-by: Josh Wu Signed-off-by: Andreas Bießmann --- diff --git a/arch/arm/cpu/armv7/at91/cpu.c b/arch/arm/cpu/armv7/at91/cpu.c index 2fbf60d542..8d86f97e3d 100644 --- a/arch/arm/cpu/armv7/at91/cpu.c +++ b/arch/arm/cpu/armv7/at91/cpu.c @@ -61,6 +61,8 @@ int print_cpuinfo(void) void enable_caches(void) { + icache_enable(); + dcache_enable(); } unsigned int get_chip_id(void)