diff mbox

[11/11] snowball: Adding board specific cache cleanup routine

Message ID 1340037344-2497-12-git-send-email-mathieu.poirier@linaro.org
State New
Headers show

Commit Message

Mathieu Poirier June 18, 2012, 4:35 p.m. UTC
From: "Mathieu J. Poirier" <mathieu.poirier@linaro.org>

This is mandatory in order to boot the Linux kernel.

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

Patch

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