[U-Boot] [PATCH v2 3/3] ARMv7: at91: enable ICache and DCache.

Josh Wu josh.wu at atmel.com
Mon May 19 13:51:28 CEST 2014


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 <josh.wu at atmel.com>
---
v1 -> v2:
  remove the redundant #ifndef(s).

 arch/arm/cpu/armv7/at91/cpu.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/cpu/armv7/at91/cpu.c b/arch/arm/cpu/armv7/at91/cpu.c
index 2fbf60d..8d86f97 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)
-- 
1.7.9.5



More information about the U-Boot mailing list