1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Texas Instruments, <www.ti.com>
6 #ifndef _ASM_ARCH_SPL_H_
7 #define _ASM_ARCH_SPL_H_
9 #define BOOT_DEVICE_NONE 0x00
10 #define BOOT_DEVICE_MMC2_2 0xFF
12 #if defined(CONFIG_AM33XX)
13 #define BOOT_DEVICE_XIP 0x01
14 #define BOOT_DEVICE_XIPWAIT 0x02
15 #define BOOT_DEVICE_NAND 0x05
16 #define BOOT_DEVICE_NAND_I2C 0x06
17 #define BOOT_DEVICE_MMC1 0x08
18 #define BOOT_DEVICE_MMC2 0x09
19 #define BOOT_DEVICE_SPI 0x0B
20 #define BOOT_DEVICE_UART 0x41
21 #define BOOT_DEVICE_USBETH 0x44
22 #define BOOT_DEVICE_CPGMAC 0x46
23 #define BOOT_DEVICE_ONENAND 0xFF /* ROM does not support OneNAND. */
25 #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
26 #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
27 #elif defined(CONFIG_AM43XX)
28 #define BOOT_DEVICE_NOR 0x01
29 #define BOOT_DEVICE_NAND 0x05
30 #define BOOT_DEVICE_MMC1 0x07
31 #define BOOT_DEVICE_MMC2 0x08
32 #define BOOT_DEVICE_SPI 0x0A
33 #define BOOT_DEVICE_USB 0x0D
34 #define BOOT_DEVICE_UART 0x41
35 #define BOOT_DEVICE_USBETH 0x45
36 #define BOOT_DEVICE_CPGMAC 0x47
38 #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
39 #ifdef CONFIG_SPL_USB_STORAGE
40 #define MMC_BOOT_DEVICES_END BOOT_DEVICE_USB
42 #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2