Tom Rini | 55cdbb8 | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2012 |
| 3 | * Texas Instruments, <www.ti.com> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Tom Rini | 55cdbb8 | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 6 | */ |
| 7 | #ifndef _ASM_SPL_H_ |
| 8 | #define _ASM_SPL_H_ |
| 9 | |
Marek Vasut | 34584d1 | 2014-10-16 12:25:40 +0200 | [diff] [blame] | 10 | #if defined(CONFIG_OMAP) \ |
Masahiro Yamada | 9f2ec3f | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 11 | || defined(CONFIG_EXYNOS4) || defined(CONFIG_EXYNOS5) \ |
| 12 | || defined(CONFIG_EXYNOS4210) |
Tom Rini | 55cdbb8 | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 13 | /* Platform-specific defines */ |
| 14 | #include <asm/arch/spl.h> |
| 15 | |
Masahiro Yamada | 9f2ec3f | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 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, |
Masahiro Yamada | 494456b | 2016-02-02 19:12:31 +0900 | [diff] [blame] | 27 | BOOT_DEVICE_USB, |
Masahiro Yamada | 9f2ec3f | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 28 | BOOT_DEVICE_SATA, |
| 29 | BOOT_DEVICE_I2C, |
Simon Glass | c01c71b | 2015-02-07 10:47:29 -0700 | [diff] [blame] | 30 | BOOT_DEVICE_BOARD, |
Masahiro Yamada | 9f2ec3f | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 31 | BOOT_DEVICE_NONE |
| 32 | }; |
| 33 | #endif |
| 34 | |
Nikita Kiryanov | 36afd45 | 2015-11-08 17:11:49 +0200 | [diff] [blame] | 35 | /** |
| 36 | * Board specific load method for boards that have a special way of loading |
| 37 | * U-Boot, which does not fit with the existing SPL code. |
| 38 | * |
| 39 | * @return 0 on success, negative errno value on failure. |
| 40 | */ |
| 41 | |
| 42 | int spl_board_load_image(void); |
Simon Glass | c01c71b | 2015-02-07 10:47:29 -0700 | [diff] [blame] | 43 | |
Tom Rini | 6507f13 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 44 | /* Linker symbols. */ |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 45 | extern char __bss_start[], __bss_end[]; |
Tom Rini | 6507f13 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 46 | |
Simon Glass | fc8fdc7 | 2015-03-03 08:02:58 -0700 | [diff] [blame] | 47 | #ifndef CONFIG_DM |
Tom Rini | 6507f13 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 48 | extern gd_t gdata; |
Simon Glass | fc8fdc7 | 2015-03-03 08:02:58 -0700 | [diff] [blame] | 49 | #endif |
Tom Rini | 6507f13 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 50 | |
Tom Rini | 55cdbb8 | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 51 | #endif |