blob: 4fab24cd1563862af18b3c65a488d297426dc4e9 [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 {
Simon Glass830690d2022-10-20 18:23:01 -060010 BOOT_DEVICE_MMC1,
11 BOOT_DEVICE_MMC2,
12 BOOT_DEVICE_MMC2_2,
Simon Glasse961a662016-07-04 11:57:51 -060013 BOOT_DEVICE_BOARD,
Simon Glassd2b22ae2022-10-20 18:23:10 -060014 BOOT_DEVICE_VBE,
Sean Anderson53d8bf82023-10-14 16:48:03 -040015 BOOT_DEVICE_CPGMAC,
Sean Anderson65efaac2023-10-14 16:48:04 -040016 BOOT_DEVICE_NOR,
Sean Anderson60d76e32023-10-14 16:48:05 -040017 BOOT_DEVICE_SPI,
Sean Anderson8502b5b2023-11-04 16:37:53 -040018 BOOT_DEVICE_NAND,
Simon Glasse961a662016-07-04 11:57:51 -060019};
20
Simon Glassf178beb2021-07-05 16:32:45 -060021/**
22 * sandbox_find_next_phase() - Find the next phase of U-Boot
23 *
24 * This function is intended to be called from within sandbox SPL. It uses
25 * a few rules to find the filename of the next U-Boot phase. See also
26 * os_find_u_boot().
27 *
28 * @fname: place to put full path to U-Boot
29 * @maxlen: maximum size of @fname
30 * @use_img: select the 'u-boot.img' file instead of the 'u-boot' ELF file
31 */
32int sandbox_find_next_phase(char *fname, int maxlen, bool use_img);
33
Simon Glasse961a662016-07-04 11:57:51 -060034#endif