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