diff options
author | Simon Glass <sjg@chromium.org> | 2016-07-04 11:57:51 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-07-14 20:40:24 -0600 |
commit | e961a66df91ea4cbf9b6978995f1ba6c8d67aa33 (patch) | |
tree | 834ef399e8b7ca2d9cd1be9d7ee7214937ff2cd1 /arch/sandbox/include | |
parent | d0d0746e0c7c9eeddc82106cf7d4c596eb45f6c2 (diff) | |
download | u-boot-e961a66df91ea4cbf9b6978995f1ba6c8d67aa33.tar.gz u-boot-e961a66df91ea4cbf9b6978995f1ba6c8d67aa33.tar.xz u-boot-e961a66df91ea4cbf9b6978995f1ba6c8d67aa33.zip |
sandbox: Add basic SPL implementation
Add an sandbox implementation for the generic SPL framework. This supports
locating and running U-Boot proper.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/include')
-rw-r--r-- | arch/sandbox/include/asm/spl.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/spl.h b/arch/sandbox/include/asm/spl.h new file mode 100644 index 0000000000..59f2401170 --- /dev/null +++ b/arch/sandbox/include/asm/spl.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2016 Google, Inc + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __asm_spl_h +#define __asm_spl_h + +#define CONFIG_SPL_BOARD_LOAD_IMAGE + +/** + * Board-specific load method for boards that have a special way of loading + * U-Boot, which does not fit with the existing SPL code. + * + * @return 0 on success, negative errno value on failure. + */ +int spl_board_load_image(void); + +enum { + BOOT_DEVICE_BOARD, +}; + +#endif |