]> git.ipfire.org Git - thirdparty/u-boot.git/blame - common/spl/spl_bootrom.c
Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet""
[thirdparty/u-boot.git] / common / spl / spl_bootrom.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
225d30b7
PT
2/*
3 * Copyright (C) 2017 Theobroma Systems Design und Consulting GmH
225d30b7
PT
4 */
5
d678a59d 6#include <common.h>
225d30b7
PT
7#include <spl.h>
8
cda789a5
PF
9__weak int board_return_to_bootrom(struct spl_image_info *spl_image,
10 struct spl_boot_device *bootdev)
225d30b7 11{
cda789a5 12 return 0;
225d30b7
PT
13}
14
15static int spl_return_to_bootrom(struct spl_image_info *spl_image,
16 struct spl_boot_device *bootdev)
17{
18 /*
19 * If the board implements a way to return to its ROM (with
20 * the expectation that the next stage of will be booted by
21 * the ROM), it will implement board_return_to_bootrom() and
22 * should not return from it.
23 */
cda789a5 24 return board_return_to_bootrom(spl_image, bootdev);
225d30b7
PT
25}
26
27SPL_LOAD_IMAGE_METHOD("BOOTROM", 0, BOOT_DEVICE_BOOTROM, spl_return_to_bootrom);