diff options
author | Adam Ford <aford173@gmail.com> | 2017-07-14 08:53:20 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-23 09:24:47 -0400 |
commit | c3bec5478f604c88191bd29309abe47df0be53cb (patch) | |
tree | bcf640ca33d2e0c01bac5c0bc4feaa2221444a63 /arch/arm/mach-omap2/omap3/board.c | |
parent | 72281c5c468a6d18c4433c4cf0bc20b5749f74f1 (diff) |
arm: omap3: Detect boot mode very early
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>
Diffstat (limited to 'arch/arm/mach-omap2/omap3/board.c')
-rw-r--r-- | arch/arm/mach-omap2/omap3/board.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap3/board.c b/arch/arm/mach-omap2/omap3/board.c index cd8e302272..a61b933145 100644 --- a/arch/arm/mach-omap2/omap3/board.c +++ b/arch/arm/mach-omap2/omap3/board.c @@ -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 |