blob: d25dc7c82a03d5e8c2c562de834ce9da05de523c [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Glassa7e2d4d2016-07-04 11:57:51 -06002/*
3 * Copyright (c) 2016 Google, Inc
Simon Glassa7e2d4d2016-07-04 11:57:51 -06004 */
5
6#ifndef __asm_spl_h
7#define __asm_spl_h
8
9#define CONFIG_SPL_BOARD_LOAD_IMAGE
10
Simon Glassa7e2d4d2016-07-04 11:57:51 -060011enum {
12 BOOT_DEVICE_BOARD,
13};
14
Simon Glass1cd06002021-07-05 16:32:45 -060015/**
16 * sandbox_find_next_phase() - Find the next phase of U-Boot
17 *
18 * This function is intended to be called from within sandbox SPL. It uses
19 * a few rules to find the filename of the next U-Boot phase. See also
20 * os_find_u_boot().
21 *
22 * @fname: place to put full path to U-Boot
23 * @maxlen: maximum size of @fname
24 * @use_img: select the 'u-boot.img' file instead of the 'u-boot' ELF file
25 */
26int sandbox_find_next_phase(char *fname, int maxlen, bool use_img);
27
Simon Glassa7e2d4d2016-07-04 11:57:51 -060028#endif