ARM: Add new BOOT_DEVICE_DFU boot mode
[oweals/u-boot.git] / arch / arm / include / asm / spl.h
1 /*
2  * (C) Copyright 2012
3  * Texas Instruments, <www.ti.com>
4  *
5  * SPDX-License-Identifier:     GPL-2.0+
6  */
7 #ifndef _ASM_SPL_H_
8 #define _ASM_SPL_H_
9
10 #if defined(CONFIG_OMAP) \
11         || defined(CONFIG_EXYNOS4) || defined(CONFIG_EXYNOS5) \
12         || defined(CONFIG_EXYNOS4210)
13 /* Platform-specific defines */
14 #include <asm/arch/spl.h>
15
16 #else
17 enum {
18         BOOT_DEVICE_RAM,
19         BOOT_DEVICE_MMC1,
20         BOOT_DEVICE_MMC2,
21         BOOT_DEVICE_MMC2_2,
22         BOOT_DEVICE_NAND,
23         BOOT_DEVICE_ONENAND,
24         BOOT_DEVICE_NOR,
25         BOOT_DEVICE_UART,
26         BOOT_DEVICE_SPI,
27         BOOT_DEVICE_USB,
28         BOOT_DEVICE_SATA,
29         BOOT_DEVICE_I2C,
30         BOOT_DEVICE_BOARD,
31         BOOT_DEVICE_DFU,
32         BOOT_DEVICE_NONE
33 };
34 #endif
35
36 /**
37  * Board specific load method for boards that have a special way of loading
38  * U-Boot, which does not fit with the existing SPL code.
39  *
40  * @return 0 on success, negative errno value on failure.
41  */
42
43 int spl_board_load_image(void);
44
45 /* Linker symbols. */
46 extern char __bss_start[], __bss_end[];
47
48 #ifndef CONFIG_DM
49 extern gd_t gdata;
50 #endif
51
52 #endif