blob: e568af256112fc46cc4e3341d7bf8999e0e8d409 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Tom Rini55cdbb82012-08-14 08:50:58 -07002/*
3 * (C) Copyright 2012
4 * Texas Instruments, <www.ti.com>
Tom Rini55cdbb82012-08-14 08:50:58 -07005 */
6#ifndef _ASM_SPL_H_
7#define _ASM_SPL_H_
8
Tom Rini89024dd2017-05-12 22:33:16 -04009#if defined(CONFIG_ARCH_OMAP2PLUS) \
Masahiro Yamada9f2ec3f2014-04-23 21:20:43 +090010 || defined(CONFIG_EXYNOS4) || defined(CONFIG_EXYNOS5) \
Lokesh Vutlae0064602018-08-27 15:57:11 +053011 || defined(CONFIG_EXYNOS4210) || defined(CONFIG_ARCH_K3)
Tom Rini55cdbb82012-08-14 08:50:58 -070012/* Platform-specific defines */
13#include <asm/arch/spl.h>
14
Masahiro Yamada9f2ec3f2014-04-23 21:20:43 +090015#else
16enum {
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 Yamada494456b2016-02-02 19:12:31 +090026 BOOT_DEVICE_USB,
Masahiro Yamada9f2ec3f2014-04-23 21:20:43 +090027 BOOT_DEVICE_SATA,
28 BOOT_DEVICE_I2C,
Simon Glassc01c71b2015-02-07 10:47:29 -070029 BOOT_DEVICE_BOARD,
Michal Simeke1024c92016-08-30 15:38:57 +020030 BOOT_DEVICE_DFU,
Vikas Manochac6d9e9d2017-05-28 12:55:11 -070031 BOOT_DEVICE_XIP,
Philipp Tomsich225d30b2017-06-22 23:38:36 +020032 BOOT_DEVICE_BOOTROM,
Masahiro Yamada9f2ec3f2014-04-23 21:20:43 +090033 BOOT_DEVICE_NONE
34};
35#endif
36
Tom Rini6507f132012-08-22 15:31:05 -070037/* Linker symbols. */
Simon Glass3929fb02013-03-14 06:54:53 +000038extern char __bss_start[], __bss_end[];
Tom Rini6507f132012-08-22 15:31:05 -070039
Simon Glassfc8fdc72015-03-03 08:02:58 -070040#ifndef CONFIG_DM
Tom Rini6507f132012-08-22 15:31:05 -070041extern gd_t gdata;
Simon Glassfc8fdc72015-03-03 08:02:58 -070042#endif
Tom Rini6507f132012-08-22 15:31:05 -070043
Tom Rini55cdbb82012-08-14 08:50:58 -070044#endif