1*83d290c5STom Rini // SPDX-License-Identifier: GPL-2.0+ 260083261SDirk Eibach /* 360083261SDirk Eibach * (C) Copyright 2016 460083261SDirk Eibach * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc 560083261SDirk Eibach */ 660083261SDirk Eibach 760083261SDirk Eibach #include <common.h> 860083261SDirk Eibach #include <config.h> 960083261SDirk Eibach #include <asm/arch/cpu.h> 1060083261SDirk Eibach spl_board_init(void)1160083261SDirk Eibachvoid spl_board_init(void) 1260083261SDirk Eibach { 1360083261SDirk Eibach #if CONFIG_SPL_BOOT_DEVICE == SPL_BOOT_SPI_NOR_FLASH 1460083261SDirk Eibach u32 *bootrom_save = (u32 *)CONFIG_SPL_BOOTROM_SAVE; 1560083261SDirk Eibach u32 *regs = (u32 *)(*bootrom_save); 1660083261SDirk Eibach 1760083261SDirk Eibach printf("Returning to BootROM (return address %08x)...\n", regs[13]); 1860083261SDirk Eibach return_to_bootrom(); 1960083261SDirk Eibach #endif 2060083261SDirk Eibach } 21