]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
arm: omap3: Detect boot mode very early
authorAdam Ford <aford173@gmail.com>
Fri, 14 Jul 2017 13:53:20 +0000 (08:53 -0500)
committerTom Rini <trini@konsulko.com>
Sun, 23 Jul 2017 13:24:47 +0000 (09:24 -0400)
Fixes 4bd754d8abef ("arm: omap: Detect boot mode very early") where
the intent was to store the boot params information in a known
location and pass it to SPL very early. Unfortunately it didn't
account for OMAP3 boards.

This patch adds adds this functionality back into OMAP3 boards.

Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Adam Ford <aford173@gmail.com>
arch/arm/mach-omap2/omap3/board.c

index cd8e302272913414e4438a555d08a2151580d969..a61b9331450e31155f78f82050f91a61758522da 100644 (file)
@@ -212,6 +212,12 @@ void board_init_f(ulong dummy)
 {
        early_system_init();
        mem_init();
+       /*
+       * Save the boot parameters passed from romcode.
+       * We cannot delay the saving further than this,
+       * to prevent overwrites.
+       */
+       save_omap_boot_params();
 }
 #endif