2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2016-07-04 17:57:51 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Google, Inc
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __asm_spl_h
|
|
|
|
#define __asm_spl_h
|
|
|
|
|
|
|
|
enum {
|
2022-10-21 00:23:01 +00:00
|
|
|
BOOT_DEVICE_MMC1,
|
|
|
|
BOOT_DEVICE_MMC2,
|
|
|
|
BOOT_DEVICE_MMC2_2,
|
2016-07-04 17:57:51 +00:00
|
|
|
BOOT_DEVICE_BOARD,
|
2022-10-21 00:23:10 +00:00
|
|
|
BOOT_DEVICE_VBE,
|
2023-10-14 20:48:03 +00:00
|
|
|
BOOT_DEVICE_CPGMAC,
|
2023-10-14 20:48:04 +00:00
|
|
|
BOOT_DEVICE_NOR,
|
2023-10-14 20:48:05 +00:00
|
|
|
BOOT_DEVICE_SPI,
|
2016-07-04 17:57:51 +00:00
|
|
|
};
|
|
|
|
|
2021-07-05 22:32:45 +00:00
|
|
|
/**
|
|
|
|
* sandbox_find_next_phase() - Find the next phase of U-Boot
|
|
|
|
*
|
|
|
|
* This function is intended to be called from within sandbox SPL. It uses
|
|
|
|
* a few rules to find the filename of the next U-Boot phase. See also
|
|
|
|
* os_find_u_boot().
|
|
|
|
*
|
|
|
|
* @fname: place to put full path to U-Boot
|
|
|
|
* @maxlen: maximum size of @fname
|
|
|
|
* @use_img: select the 'u-boot.img' file instead of the 'u-boot' ELF file
|
|
|
|
*/
|
|
|
|
int sandbox_find_next_phase(char *fname, int maxlen, bool use_img);
|
|
|
|
|
2016-07-04 17:57:51 +00:00
|
|
|
#endif
|