]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-omap2/hwinit-common.c
arm: omap: Detect boot mode very early
[u-boot] / arch / arm / mach-omap2 / hwinit-common.c
index 7f6db3cf371648ed5658efc120039416ebb0eef5..77368ee85f5a7502b75e00aa031f31aa3f13365e 100644 (file)
@@ -158,6 +158,14 @@ void early_system_init(void)
        do_io_settings();
 #endif
        setup_early_clocks();
+#ifdef CONFIG_SPL_BUILD
+       /*
+        * Save the boot parameters passed from romcode.
+        * We cannot delay the saving further than this,
+        * to prevent overwrites.
+        */
+       save_omap_boot_params();
+#endif
        do_board_detect();
        vcores_init();
 #ifdef CONFIG_DEBUG_UART_OMAP