xref: /openbmc/u-boot/board/gdsys/a38x/spl.c (revision ebce73f0)
1 /*
2  * (C) Copyright 2016
3  * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
4  *
5  * SPDX-License-Identifier:    GPL-2.0+
6  */
7 
8 #include <common.h>
9 #include <config.h>
10 #include <asm/arch/cpu.h>
11 
12 void spl_board_init(void)
13 {
14 #if CONFIG_SPL_BOOT_DEVICE == SPL_BOOT_SPI_NOR_FLASH
15 	u32 *bootrom_save = (u32 *)CONFIG_SPL_BOOTROM_SAVE;
16 	u32 *regs = (u32 *)(*bootrom_save);
17 
18 	printf("Returning to BootROM (return address %08x)...\n", regs[13]);
19 	return_to_bootrom();
20 #endif
21 }
22