Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2012 |
| 4 | * Texas Instruments, <www.ti.com> |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 5 | */ |
| 6 | #ifndef _ASM_SPL_H_ |
| 7 | #define _ASM_SPL_H_ |
| 8 | |
Tom Rini | f28c434 | 2017-05-12 22:33:16 -0400 | [diff] [blame] | 9 | #if defined(CONFIG_ARCH_OMAP2PLUS) \ |
Masahiro Yamada | 7472656 | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 10 | || defined(CONFIG_EXYNOS4) || defined(CONFIG_EXYNOS5) \ |
Lokesh Vutla | c7bfb85 | 2018-08-27 15:57:11 +0530 | [diff] [blame] | 11 | || defined(CONFIG_EXYNOS4210) || defined(CONFIG_ARCH_K3) |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 12 | /* Platform-specific defines */ |
| 13 | #include <asm/arch/spl.h> |
| 14 | |
Masahiro Yamada | 7472656 | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 15 | #else |
| 16 | enum { |
| 17 | BOOT_DEVICE_RAM, |
| 18 | BOOT_DEVICE_MMC1, |
| 19 | BOOT_DEVICE_MMC2, |
| 20 | BOOT_DEVICE_MMC2_2, |
| 21 | BOOT_DEVICE_NAND, |
| 22 | BOOT_DEVICE_ONENAND, |
| 23 | BOOT_DEVICE_NOR, |
| 24 | BOOT_DEVICE_UART, |
| 25 | BOOT_DEVICE_SPI, |
Masahiro Yamada | 90c5605 | 2016-02-02 19:12:31 +0900 | [diff] [blame] | 26 | BOOT_DEVICE_USB, |
Masahiro Yamada | 7472656 | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 27 | BOOT_DEVICE_SATA, |
| 28 | BOOT_DEVICE_I2C, |
Simon Glass | 040d818 | 2015-02-07 10:47:29 -0700 | [diff] [blame] | 29 | BOOT_DEVICE_BOARD, |
Michal Simek | 79f2327 | 2016-08-30 15:38:57 +0200 | [diff] [blame] | 30 | BOOT_DEVICE_DFU, |
Vikas Manocha | 9e58265 | 2017-05-28 12:55:11 -0700 | [diff] [blame] | 31 | BOOT_DEVICE_XIP, |
Philipp Tomsich | 83ad702 | 2017-06-22 23:38:36 +0200 | [diff] [blame] | 32 | BOOT_DEVICE_BOOTROM, |
Masahiro Yamada | 7472656 | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 33 | BOOT_DEVICE_NONE |
| 34 | }; |
| 35 | #endif |
| 36 | |
Tom Rini | 31dfba4 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 37 | /* Linker symbols. */ |
Simon Glass | ed70c8f | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 38 | extern char __bss_start[], __bss_end[]; |
Tom Rini | 31dfba4 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 39 | |
Simon Glass | aeca9cc | 2015-03-03 08:02:58 -0700 | [diff] [blame] | 40 | #ifndef CONFIG_DM |
Tom Rini | 31dfba4 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 41 | extern gd_t gdata; |
Simon Glass | aeca9cc | 2015-03-03 08:02:58 -0700 | [diff] [blame] | 42 | #endif |
Tom Rini | 31dfba4 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 43 | |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 44 | #endif |