2012-08-14 15:50:58 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2012
|
|
|
|
* Texas Instruments, <www.ti.com>
|
|
|
|
*
|
2013-07-08 07:37:19 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2012-08-14 15:50:58 +00:00
|
|
|
*/
|
|
|
|
#ifndef _ASM_SPL_H_
|
|
|
|
#define _ASM_SPL_H_
|
|
|
|
|
2014-10-16 10:25:40 +00:00
|
|
|
#if defined(CONFIG_OMAP) \
|
2014-04-23 12:20:43 +00:00
|
|
|
|| defined(CONFIG_EXYNOS4) || defined(CONFIG_EXYNOS5) \
|
|
|
|
|| defined(CONFIG_EXYNOS4210)
|
2012-08-14 15:50:58 +00:00
|
|
|
/* Platform-specific defines */
|
|
|
|
#include <asm/arch/spl.h>
|
|
|
|
|
2014-04-23 12:20:43 +00: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 10:12:31 +00:00
|
|
|
BOOT_DEVICE_USB,
|
2014-04-23 12:20:43 +00:00
|
|
|
BOOT_DEVICE_SATA,
|
|
|
|
BOOT_DEVICE_I2C,
|
2015-02-07 17:47:29 +00:00
|
|
|
BOOT_DEVICE_BOARD,
|
2014-04-23 12:20:43 +00:00
|
|
|
BOOT_DEVICE_NONE
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2015-11-08 15:11:49 +00:00
|
|
|
/**
|
|
|
|
* Board specific load method for boards that have a special way of loading
|
|
|
|
* U-Boot, which does not fit with the existing SPL code.
|
|
|
|
*
|
|
|
|
* @return 0 on success, negative errno value on failure.
|
|
|
|
*/
|
|
|
|
|
|
|
|
int spl_board_load_image(void);
|
2015-02-07 17:47:29 +00:00
|
|
|
|
2012-08-22 22:31:05 +00:00
|
|
|
/* Linker symbols. */
|
2013-03-14 06:54:53 +00:00
|
|
|
extern char __bss_start[], __bss_end[];
|
2012-08-22 22:31:05 +00:00
|
|
|
|
2015-03-03 15:02:58 +00:00
|
|
|
#ifndef CONFIG_DM
|
2012-08-22 22:31:05 +00:00
|
|
|
extern gd_t gdata;
|
2015-03-03 15:02:58 +00:00
|
|
|
#endif
|
2012-08-22 22:31:05 +00:00
|
|
|
|
2012-08-14 15:50:58 +00:00
|
|
|
#endif
|