2012-08-14 08:50:58 -07:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2012
|
|
|
|
* Texas Instruments, <www.ti.com>
|
|
|
|
*
|
2013-07-08 09:37:19 +02:00
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
2012-08-14 08:50:58 -07:00
|
|
|
*/
|
|
|
|
#ifndef _ASM_SPL_H_
|
|
|
|
#define _ASM_SPL_H_
|
|
|
|
|
2014-10-16 12:25:40 +02:00
|
|
|
#if defined(CONFIG_OMAP) \
|
2014-04-23 21:20:43 +09:00
|
|
|
|| defined(CONFIG_EXYNOS4) || defined(CONFIG_EXYNOS5) \
|
|
|
|
|| defined(CONFIG_EXYNOS4210)
|
2012-08-14 08:50:58 -07: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,
|
|
|
|
BOOT_DEVICE_SATA,
|
|
|
|
BOOT_DEVICE_I2C,
|
2015-02-07 10:47:29 -07:00
|
|
|
BOOT_DEVICE_BOARD,
|
2014-04-23 21:20:43 +09:00
|
|
|
BOOT_DEVICE_NONE
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2015-11-08 17:11:49 +02: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 10:47:29 -07:00
|
|
|
|
2012-08-22 15:31:05 -07:00
|
|
|
/* Linker symbols. */
|
2013-03-14 06:54:53 +00:00
|
|
|
extern char __bss_start[], __bss_end[];
|
2012-08-22 15:31:05 -07:00
|
|
|
|
2015-03-03 08:02:58 -07:00
|
|
|
#ifndef CONFIG_DM
|
2012-08-22 15:31:05 -07:00
|
|
|
extern gd_t gdata;
|
2015-03-03 08:02:58 -07:00
|
|
|
#endif
|
2012-08-22 15:31:05 -07:00
|
|
|
|
2012-08-14 08:50:58 -07:00
|
|
|
#endif
|