blob: 84864d19746e23085a899bb63641d87f8bc20822 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Dirk Eibachfb605942017-02-22 16:07:23 +01002/*
3 * (C) Copyright 2016
4 * Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
Dirk Eibachfb605942017-02-22 16:07:23 +01005 */
6
7#include <common.h>
8#include <config.h>
9#include <asm/arch/cpu.h>
10
11void spl_board_init(void)
12{
13#if CONFIG_SPL_BOOT_DEVICE == SPL_BOOT_SPI_NOR_FLASH
14 u32 *bootrom_save = (u32 *)CONFIG_SPL_BOOTROM_SAVE;
15 u32 *regs = (u32 *)(*bootrom_save);
16
17 printf("Returning to BootROM (return address %08x)...\n", regs[13]);
18 return_to_bootrom();
19#endif
20}