X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=arch%2Farm%2Fmach-omap2%2Fhwinit-common.c;h=7324d522ee6e06a61a9fc8f8860f4295bfbae9a5;hb=b730ff3fd65c8d1c33f1c05ca3fbab579a86abb4;hp=7f6db3cf371648ed5658efc120039416ebb0eef5;hpb=8cb3ce64f936f5dedbcfc1935c5caf31bb682474;p=u-boot diff --git a/arch/arm/mach-omap2/hwinit-common.c b/arch/arm/mach-omap2/hwinit-common.c index 7f6db3cf37..7324d522ee 100644 --- a/arch/arm/mach-omap2/hwinit-common.c +++ b/arch/arm/mach-omap2/hwinit-common.c @@ -158,6 +158,15 @@ 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(); + spl_early_init(); +#endif do_board_detect(); vcores_init(); #ifdef CONFIG_DEBUG_UART_OMAP