[U-Boot] [PATCH 11/11] snowball: Adding board specific cache cleanup routine

mathieu.poirier at linaro.org mathieu.poirier at linaro.org
Mon Jun 18 18:25:36 CEST 2012


From: "Mathieu J. Poirier" <mathieu.poirier at linaro.org>

This is mandatory in order to boot the Linux kernel.

Signed-off-by: Mathieu Poirier <mathieu.poirier at linaro.org>
Signed-off-by: John Rigby <john.rigby at linaro.org>
---
 arch/arm/cpu/armv7/u8500/cpu.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/arch/arm/cpu/armv7/u8500/cpu.c b/arch/arm/cpu/armv7/u8500/cpu.c
index 02bb332..66a9d2c 100644
--- a/arch/arm/cpu/armv7/u8500/cpu.c
+++ b/arch/arm/cpu/armv7/u8500/cpu.c
@@ -73,6 +73,15 @@ static unsigned int read_asicid(void)
 	return readl(address);
 }
 
+void cpu_cache_management(void)
+{
+	if (cpu_is_u8500v2()) {
+		*((volatile unsigned int *)(0xA04127CC)) = 0xFF;
+		*((volatile unsigned int *)(0xA0412900)) = 0xFF;
+		*((volatile unsigned int *)(0xA0412904)) = 0xFF;
+	}
+}
+
 #ifdef CONFIG_ARCH_CPU_INIT
 /*
  * SOC specific cpu init
-- 
1.7.5.4



More information about the U-Boot mailing list