Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Tom Rini | 55cdbb8 | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2012 |
| 4 | * Texas Instruments, <www.ti.com> |
Tom Rini | 55cdbb8 | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 5 | */ |
| 6 | #ifndef _ASM_SPL_H_ |
| 7 | #define _ASM_SPL_H_ |
| 8 | |
Tom Rini | 89024dd | 2017-05-12 22:33:16 -0400 | [diff] [blame] | 9 | #if defined(CONFIG_ARCH_OMAP2PLUS) \ |
Masahiro Yamada | 9f2ec3f | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 10 | || defined(CONFIG_EXYNOS4) || defined(CONFIG_EXYNOS5) \ |
| 11 | || defined(CONFIG_EXYNOS4210) |
Tom Rini | 55cdbb8 | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 12 | /* Platform-specific defines */ |
| 13 | #include <asm/arch/spl.h> |
| 14 | |
Masahiro Yamada | 9f2ec3f | 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 | 494456b | 2016-02-02 19:12:31 +0900 | [diff] [blame] | 26 | BOOT_DEVICE_USB, |
Masahiro Yamada | 9f2ec3f | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 27 | BOOT_DEVICE_SATA, |
| 28 | BOOT_DEVICE_I2C, |
Simon Glass | c01c71b | 2015-02-07 10:47:29 -0700 | [diff] [blame] | 29 | BOOT_DEVICE_BOARD, |
Michal Simek | e1024c9 | 2016-08-30 15:38:57 +0200 | [diff] [blame] | 30 | BOOT_DEVICE_DFU, |
Vikas Manocha | c6d9e9d | 2017-05-28 12:55:11 -0700 | [diff] [blame] | 31 | BOOT_DEVICE_XIP, |
Philipp Tomsich | 225d30b | 2017-06-22 23:38:36 +0200 | [diff] [blame] | 32 | BOOT_DEVICE_BOOTROM, |
Masahiro Yamada | 9f2ec3f | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 33 | BOOT_DEVICE_NONE |
| 34 | }; |
| 35 | #endif |
| 36 | |
Tom Rini | 6507f13 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 37 | /* Linker symbols. */ |
Simon Glass | 3929fb0 | 2013-03-14 06:54:53 +0000 | [diff] [blame] | 38 | extern char __bss_start[], __bss_end[]; |
Tom Rini | 6507f13 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 39 | |
Simon Glass | fc8fdc7 | 2015-03-03 08:02:58 -0700 | [diff] [blame] | 40 | #ifndef CONFIG_DM |
Tom Rini | 6507f13 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 41 | extern gd_t gdata; |
Simon Glass | fc8fdc7 | 2015-03-03 08:02:58 -0700 | [diff] [blame] | 42 | #endif |
Tom Rini | 6507f13 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 43 | |
Tom Rini | 55cdbb8 | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 44 | #endif |