blob: 19c38f4083c2d78aef27d3ea1317a4dff741e217 [file] [log] [blame]
Tom Rini55cdbb82012-08-14 08:50:58 -07001/*
2 * (C) Copyright 2012
3 * Texas Instruments, <www.ti.com>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Tom Rini55cdbb82012-08-14 08:50:58 -07006 */
7#ifndef _ASM_SPL_H_
8#define _ASM_SPL_H_
9
Marek Vasut34584d12014-10-16 12:25:40 +020010#if defined(CONFIG_OMAP) \
Masahiro Yamada9f2ec3f2014-04-23 21:20:43 +090011 || defined(CONFIG_EXYNOS4) || defined(CONFIG_EXYNOS5) \
12 || defined(CONFIG_EXYNOS4210)
Tom Rini55cdbb82012-08-14 08:50:58 -070013/* Platform-specific defines */
14#include <asm/arch/spl.h>
15
Masahiro Yamada9f2ec3f2014-04-23 21:20:43 +090016#else
17enum {
18 BOOT_DEVICE_RAM,
19 BOOT_DEVICE_MMC1,
20 BOOT_DEVICE_MMC2,
21 BOOT_DEVICE_MMC2_2,
22 BOOT_DEVICE_NAND,
23 BOOT_DEVICE_ONENAND,
24 BOOT_DEVICE_NOR,
25 BOOT_DEVICE_UART,
26 BOOT_DEVICE_SPI,
Masahiro Yamada494456b2016-02-02 19:12:31 +090027 BOOT_DEVICE_USB,
Masahiro Yamada9f2ec3f2014-04-23 21:20:43 +090028 BOOT_DEVICE_SATA,
29 BOOT_DEVICE_I2C,
Simon Glassc01c71b2015-02-07 10:47:29 -070030 BOOT_DEVICE_BOARD,
Masahiro Yamada9f2ec3f2014-04-23 21:20:43 +090031 BOOT_DEVICE_NONE
32};
33#endif
34
Nikita Kiryanov36afd452015-11-08 17:11:49 +020035/**
36 * Board specific load method for boards that have a special way of loading
37 * U-Boot, which does not fit with the existing SPL code.
38 *
39 * @return 0 on success, negative errno value on failure.
40 */
41
42int spl_board_load_image(void);
Simon Glassc01c71b2015-02-07 10:47:29 -070043
Tom Rini6507f132012-08-22 15:31:05 -070044/* Linker symbols. */
Simon Glass3929fb02013-03-14 06:54:53 +000045extern char __bss_start[], __bss_end[];
Tom Rini6507f132012-08-22 15:31:05 -070046
Simon Glassfc8fdc72015-03-03 08:02:58 -070047#ifndef CONFIG_DM
Tom Rini6507f132012-08-22 15:31:05 -070048extern gd_t gdata;
Simon Glassfc8fdc72015-03-03 08:02:58 -070049#endif
Tom Rini6507f132012-08-22 15:31:05 -070050
Tom Rini55cdbb82012-08-14 08:50:58 -070051#endif