Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Glass | e961a66 | 2016-07-04 11:57:51 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2016 Google, Inc |
Simon Glass | e961a66 | 2016-07-04 11:57:51 -0600 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef __asm_spl_h |
| 7 | #define __asm_spl_h |
| 8 | |
Simon Glass | e961a66 | 2016-07-04 11:57:51 -0600 | [diff] [blame] | 9 | enum { |
Simon Glass | 830690d | 2022-10-20 18:23:01 -0600 | [diff] [blame] | 10 | BOOT_DEVICE_MMC1, |
| 11 | BOOT_DEVICE_MMC2, |
| 12 | BOOT_DEVICE_MMC2_2, |
Simon Glass | e961a66 | 2016-07-04 11:57:51 -0600 | [diff] [blame] | 13 | BOOT_DEVICE_BOARD, |
| 14 | }; |
| 15 | |
Simon Glass | f178beb | 2021-07-05 16:32:45 -0600 | [diff] [blame] | 16 | /** |
| 17 | * sandbox_find_next_phase() - Find the next phase of U-Boot |
| 18 | * |
| 19 | * This function is intended to be called from within sandbox SPL. It uses |
| 20 | * a few rules to find the filename of the next U-Boot phase. See also |
| 21 | * os_find_u_boot(). |
| 22 | * |
| 23 | * @fname: place to put full path to U-Boot |
| 24 | * @maxlen: maximum size of @fname |
| 25 | * @use_img: select the 'u-boot.img' file instead of the 'u-boot' ELF file |
| 26 | */ |
| 27 | int sandbox_find_next_phase(char *fname, int maxlen, bool use_img); |
| 28 | |
Simon Glass | e961a66 | 2016-07-04 11:57:51 -0600 | [diff] [blame] | 29 | #endif |