2018-05-07 06:58:06 +09:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2012-08-15 00:50:58 +09:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2012
|
|
|
|
* Texas Instruments, <www.ti.com>
|
|
|
|
*/
|
|
|
|
#ifndef _ASM_SPL_H_
|
|
|
|
#define _ASM_SPL_H_
|
|
|
|
|
2017-05-13 11:33:16 +09:00
|
|
|
#if defined(CONFIG_ARCH_OMAP2PLUS) \
|
2014-04-23 21:20:43 +09:00
|
|
|
|| defined(CONFIG_EXYNOS4) || defined(CONFIG_EXYNOS5) \
|
2018-08-27 19:27:11 +09:00
|
|
|
|| defined(CONFIG_EXYNOS4210) || defined(CONFIG_ARCH_K3)
|
2012-08-15 00:50:58 +09:00
|
|
|
/* Platform-specific defines */
|
|
|
|
#include <asm/arch/spl.h>
|
|
|
|
|
2014-04-23 21:20:43 +09:00
|
|
|
#else
|
|
|
|
enum {
|
|
|
|
BOOT_DEVICE_RAM,
|
|
|
|
BOOT_DEVICE_MMC1,
|
|
|
|
BOOT_DEVICE_MMC2,
|
|
|
|
BOOT_DEVICE_MMC2_2,
|
|
|
|
BOOT_DEVICE_NAND,
|
|
|
|
BOOT_DEVICE_ONENAND,
|
|
|
|
BOOT_DEVICE_NOR,
|
|
|
|
BOOT_DEVICE_UART,
|
|
|
|
BOOT_DEVICE_SPI,
|
2016-02-02 19:12:31 +09:00
|
|
|
BOOT_DEVICE_USB,
|
2014-04-23 21:20:43 +09:00
|
|
|
BOOT_DEVICE_SATA,
|
|
|
|
BOOT_DEVICE_I2C,
|
2015-02-08 02:47:29 +09:00
|
|
|
BOOT_DEVICE_BOARD,
|
2016-08-30 22:38:57 +09:00
|
|
|
BOOT_DEVICE_DFU,
|
2017-05-29 04:55:11 +09:00
|
|
|
BOOT_DEVICE_XIP,
|
2017-06-23 06:38:36 +09:00
|
|
|
BOOT_DEVICE_BOOTROM,
|
2014-04-23 21:20:43 +09:00
|
|
|
BOOT_DEVICE_NONE
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2012-08-23 07:31:05 +09:00
|
|
|
/* Linker symbols. */
|
2013-03-14 15:54:53 +09:00
|
|
|
extern char __bss_start[], __bss_end[];
|
2012-08-23 07:31:05 +09:00
|
|
|
|
2015-03-04 00:02:58 +09:00
|
|
|
#ifndef CONFIG_DM
|
2012-08-23 07:31:05 +09:00
|
|
|
extern gd_t gdata;
|
2015-03-04 00:02:58 +09:00
|
|
|
#endif
|
2012-08-23 07:31:05 +09:00
|
|
|
|
2012-08-15 00:50:58 +09:00
|
|
|
#endif
|