blob: 2d05a9c98ada8660d0fdcbbe6cee3f9b7e5bef50 [file] [log] [blame]
Dirk Eibach60083262017-02-22 16:07:23 +01001/*
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
12void 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}