Lukas Auer | 396f0bd | 2019-08-21 21:14:45 +0200 | [diff] [blame] | 1 | /* 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 | |
| 11 | enum { |
| 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, |
Mayuresh Chitale | bd05090 | 2023-06-03 19:32:56 +0530 | [diff] [blame] | 23 | BOOT_DEVICE_NVME, |
Lukas Auer | 396f0bd | 2019-08-21 21:14:45 +0200 | [diff] [blame] | 24 | BOOT_DEVICE_I2C, |
| 25 | BOOT_DEVICE_BOARD, |
| 26 | BOOT_DEVICE_DFU, |
| 27 | BOOT_DEVICE_XIP, |
| 28 | BOOT_DEVICE_BOOTROM, |
Kautuk Consul | c86cb4a | 2022-12-07 17:12:35 +0530 | [diff] [blame] | 29 | BOOT_DEVICE_SMH, |
Lukas Auer | 396f0bd | 2019-08-21 21:14:45 +0200 | [diff] [blame] | 30 | BOOT_DEVICE_NONE |
| 31 | }; |
| 32 | |
Bin Meng | 63dcfcb | 2020-08-02 23:09:01 -0700 | [diff] [blame] | 33 | /** |
| 34 | * spl_board_init_f() - initialize board in the SPL phase |
| 35 | * |
Heinrich Schuchardt | 47b4c02 | 2022-01-19 18:05:50 +0100 | [diff] [blame] | 36 | * Return: 0 if succeeded, -ve on error |
Bin Meng | 63dcfcb | 2020-08-02 23:09:01 -0700 | [diff] [blame] | 37 | */ |
| 38 | int spl_board_init_f(void); |
| 39 | |
Lukas Auer | 396f0bd | 2019-08-21 21:14:45 +0200 | [diff] [blame] | 40 | #endif |