mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-02 09:30:10 +00:00
f178bebf55
The SPL header has a function for obtaining the phase in capital letters, e.g. 'SPL'. Add one for lower-case also, as used by sandbox. Use this to generalise the sandbox logic for determining the filename of the next sandbox executable. This can provide support for VPL. Signed-off-by: Simon Glass <sjg@chromium.org>
28 lines
663 B
C
28 lines
663 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (c) 2016 Google, Inc
|
|
*/
|
|
|
|
#ifndef __asm_spl_h
|
|
#define __asm_spl_h
|
|
|
|
#define CONFIG_SPL_BOARD_LOAD_IMAGE
|
|
|
|
enum {
|
|
BOOT_DEVICE_BOARD,
|
|
};
|
|
|
|
/**
|
|
* 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);
|
|
|
|
#endif
|