[U-Boot] [RFC PATCH] arm: arm926ejs: flush cache before disable it
Bo Shen
voice.shen at gmail.com
Tue Jul 2 14:35:54 CEST 2013
flush cache before disable it
Signed-off-by: Bo Shen <voice.shen at gmail.com>
---
arch/arm/cpu/arm926ejs/cpu.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/arch/arm/cpu/arm926ejs/cpu.c b/arch/arm/cpu/arm926ejs/cpu.c
index 626384c..10aa165 100644
--- a/arch/arm/cpu/arm926ejs/cpu.c
+++ b/arch/arm/cpu/arm926ejs/cpu.c
@@ -46,15 +46,14 @@ int cleanup_before_linux (void)
disable_interrupts ();
+ /* flush I/D-cache */
+ cache_flush();
/* turn off I/D-cache */
icache_disable();
dcache_disable();
l2_cache_disable();
- /* flush I/D-cache */
- cache_flush();
-
return 0;
}
--
1.7.10.4
More information about the U-Boot
mailing list