Add infrasturcture to cleanup any of those architecture related settings
done for u-boot, if they can cause problem during kernel boot.

Signed-off-by: Ajay Kumar <ajaykumar...@samsung.com>
---
 arch/arm/cpu/armv7/cpu.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c
index 01cdb7e..edf4604 100644
--- a/arch/arm/cpu/armv7/cpu.c
+++ b/arch/arm/cpu/armv7/cpu.c
@@ -23,6 +23,7 @@
 #include <linux/compiler.h>
 
 void __weak cpu_cache_initialization(void){}
+void __weak arch_cleanup_before_linux(void){}
 
 int cleanup_before_linux(void)
 {
@@ -35,6 +36,11 @@ int cleanup_before_linux(void)
 #ifndef CONFIG_SPL_BUILD
        disable_interrupts();
 #endif
+       /*
+        * Cleanup any of those architecture related settings done for u-boot,
+        * if they can cause problem during kernel boot.
+        */
+       arch_cleanup_before_linux();
 
        /*
         * Turn off I-cache and invalidate it
-- 
1.7.12.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to