mirror of
https://github.com/revyos/th1520-vendor-uboot.git
synced 2026-07-19 06:35:04 +02:00
37 lines
868 B
C
37 lines
868 B
C
/*
|
|
* Copyright (C) 2017-2020 Alibaba Group Holding Limited
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef _ARCH_SPL_H_
|
|
#define _ARCH_SPL_H_
|
|
|
|
#define BOOT_DEVICE_NONE 0x00
|
|
#define BOOT_DEVICE_XIP 0x01
|
|
#define BOOT_DEVICE_XIPWAIT 0x02
|
|
#define BOOT_DEVICE_NAND 0x03
|
|
#define BOOT_DEVICE_ONENAND 0x04
|
|
#define BOOT_DEVICE_MMC1 0x05
|
|
#define BOOT_DEVICE_MMC2 0x06
|
|
#define BOOT_DEVICE_MMC2_2 0x07
|
|
#define BOOT_DEVICE_UART 0x43
|
|
#define BOOT_DEVICE_USB 0x45
|
|
|
|
#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
|
|
#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2_2
|
|
|
|
/**
|
|
* 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);
|
|
|
|
#ifndef CONFIG_DM
|
|
extern gd_t gdata;
|
|
#endif
|
|
|
|
#endif
|