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 | 893cd41 | 2022-06-10 22:59:33 -0400 | [diff] [blame] | 9 | #if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5) || \ |
| 10 | defined(CONFIG_ARCH_K3) || defined(CONFIG_ARCH_OMAP2PLUS) |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 11 | /* Platform-specific defines */ |
| 12 | #include <asm/arch/spl.h> |
| 13 | |
Masahiro Yamada | 7472656 | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 14 | #else |
| 15 | enum { |
| 16 | BOOT_DEVICE_RAM, |
| 17 | BOOT_DEVICE_MMC1, |
| 18 | BOOT_DEVICE_MMC2, |
| 19 | BOOT_DEVICE_MMC2_2, |
| 20 | BOOT_DEVICE_NAND, |
| 21 | BOOT_DEVICE_ONENAND, |
| 22 | BOOT_DEVICE_NOR, |
| 23 | BOOT_DEVICE_UART, |
| 24 | BOOT_DEVICE_SPI, |
Masahiro Yamada | 90c5605 | 2016-02-02 19:12:31 +0900 | [diff] [blame] | 25 | BOOT_DEVICE_USB, |
Masahiro Yamada | 7472656 | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 26 | BOOT_DEVICE_SATA, |
| 27 | BOOT_DEVICE_I2C, |
Simon Glass | 040d818 | 2015-02-07 10:47:29 -0700 | [diff] [blame] | 28 | BOOT_DEVICE_BOARD, |
Michal Simek | 79f2327 | 2016-08-30 15:38:57 +0200 | [diff] [blame] | 29 | BOOT_DEVICE_DFU, |
Vikas Manocha | 9e58265 | 2017-05-28 12:55:11 -0700 | [diff] [blame] | 30 | BOOT_DEVICE_XIP, |
Philipp Tomsich | 83ad702 | 2017-06-22 23:38:36 +0200 | [diff] [blame] | 31 | BOOT_DEVICE_BOOTROM, |
Sean Anderson | 89346ad | 2022-03-22 16:59:19 -0400 | [diff] [blame] | 32 | BOOT_DEVICE_SMH, |
Masahiro Yamada | 7472656 | 2014-04-23 21:20:43 +0900 | [diff] [blame] | 33 | BOOT_DEVICE_NONE |
| 34 | }; |
| 35 | #endif |
| 36 | |
Simon Glass | aeca9cc | 2015-03-03 08:02:58 -0700 | [diff] [blame] | 37 | #ifndef CONFIG_DM |
Tom Rini | 31dfba4 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 38 | extern gd_t gdata; |
Simon Glass | aeca9cc | 2015-03-03 08:02:58 -0700 | [diff] [blame] | 39 | #endif |
Tom Rini | 31dfba4 | 2012-08-22 15:31:05 -0700 | [diff] [blame] | 40 | |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 41 | #endif |