aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu J. Poirier <mathieu.poirier@linaro.org>2012-05-04 10:43:10 -0600
committerJohn Rigby <john.rigby@linaro.org>2012-05-07 10:07:26 -0600
commit8e5975618f35ee44f2ceaa692539910ba765cd7f (patch)
treed8e68cf1dbd4f7c289f57b0a55802c88ccfd22a9
parentfe77c82ffdf1df12cca689be76d41815afcb56de (diff)
downloadu-boot-linaro-stable-8e5975618f35ee44f2ceaa692539910ba765cd7f.tar.gz
snowball: fixing cache management before starting kernel
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
-rw-r--r--arch/arm/cpu/armv7/cpu.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c
index 76d6448db..4caf8ea02 100644
--- a/arch/arm/cpu/armv7/cpu.c
+++ b/arch/arm/cpu/armv7/cpu.c
@@ -81,12 +81,10 @@ int cleanup_before_linux(void)
*/
invalidate_dcache_all();
#ifdef CONFIG_U8500
- /* Clean l2 */
- *((volatile unsigned int *)(0xA04127BC)) = 0xFF;
- while (*((volatile unsigned int *)(0xA04127BC)) & 0xFF);
- /* Invalidate l2 */
- *((volatile unsigned int *)(0xA041277C)) = 0xFF;
- while (*((volatile unsigned int *)(0xA041277C)) & 0xFF);
+ *((volatile unsigned int *)(0xA04127CC)) = 0xFF;
+ while (*((volatile unsigned int *)(0xA04127CC)) & 0xFF);
+ *((volatile unsigned int *)(0xA0412900)) = 0xFF;
+ *((volatile unsigned int *)(0xA0412904)) = 0xFF;
#endif
return 0;
}