blob: e8a94fcb1feaf69f965ee9841f8fb65748e3ae1e [file] [log] [blame]
Lukas Auer396f0bd2019-08-21 21:14:45 +02001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Based on arch/mips/include/asm/spl.h.
4 *
5 * (C) Copyright 2012
6 * Texas Instruments, <www.ti.com>
7 */
8#ifndef _ASM_RISCV_SPL_H_
9#define _ASM_RISCV_SPL_H_
10
11enum {
12 BOOT_DEVICE_RAM,
13 BOOT_DEVICE_MMC1,
14 BOOT_DEVICE_MMC2,
15 BOOT_DEVICE_MMC2_2,
16 BOOT_DEVICE_NAND,
17 BOOT_DEVICE_ONENAND,
18 BOOT_DEVICE_NOR,
19 BOOT_DEVICE_UART,
20 BOOT_DEVICE_SPI,
21 BOOT_DEVICE_USB,
22 BOOT_DEVICE_SATA,
23 BOOT_DEVICE_I2C,
24 BOOT_DEVICE_BOARD,
25 BOOT_DEVICE_DFU,
26 BOOT_DEVICE_XIP,
27 BOOT_DEVICE_BOOTROM,
28 BOOT_DEVICE_NONE
29};
30
Bin Meng63dcfcb2020-08-02 23:09:01 -070031/**
32 * spl_board_init_f() - initialize board in the SPL phase
33 *
Heinrich Schuchardt47b4c022022-01-19 18:05:50 +010034 * Return: 0 if succeeded, -ve on error
Bin Meng63dcfcb2020-08-02 23:09:01 -070035 */
36int spl_board_init_f(void);
37
Lukas Auer396f0bd2019-08-21 21:14:45 +020038#endif