From 4bd754d8abef61835d5da2ba0c65b2b0d3badec9 Mon Sep 17 00:00:00 2001 From: Lokesh Vutla Date: Tue, 27 Jun 2017 13:50:56 +0530 Subject: arm: omap: Detect boot mode very early ROM stores the boot params information in a known location and passes it to SPL. This information needs to be copied very early during boot or else there is a chance of getting corrupted by SPL. So move this boot device detection very early during boot. Signed-off-by: Lokesh Vutla Reviewed-by: Tom Rini --- arch/arm/mach-omap2/boot-common.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'arch/arm/mach-omap2/boot-common.c') diff --git a/arch/arm/mach-omap2/boot-common.c b/arch/arm/mach-omap2/boot-common.c index b77506df832..700e6c2f798 100644 --- a/arch/arm/mach-omap2/boot-common.c +++ b/arch/arm/mach-omap2/boot-common.c @@ -195,13 +195,6 @@ u32 spl_boot_mode(const u32 boot_device) void spl_board_init(void) { - /* - * Save the boot parameters passed from romcode. - * We cannot delay the saving further than this, - * to prevent overwrites. - */ - save_omap_boot_params(); - /* Prepare console output */ preloader_console_init(); -- cgit v1.2.3