1 /*
2  * (C) Copyright 2012
3  * Texas Instruments, <www.ti.com>
4  *
5  * SPDX-License-Identifier:	GPL-2.0+
6  */
7 #ifndef	_ASM_ARCH_SPL_H_
8 #define	_ASM_ARCH_SPL_H_
9 
10 #define BOOT_DEVICE_NONE	0x00
11 #define BOOT_DEVICE_MMC2_2	0xFF
12 
13 #if defined(CONFIG_TI814X)
14 #define BOOT_DEVICE_XIP		0x01
15 #define BOOT_DEVICE_XIPWAIT	0x02
16 #define BOOT_DEVICE_NAND	0x05
17 #define BOOT_DEVICE_NAND_I2C	0x06
18 #define BOOT_DEVICE_MMC2	0x08 /* ROM only supports 2nd instance. */
19 #define BOOT_DEVICE_MMC1	0x09
20 #define BOOT_DEVICE_SPI		0x15
21 #define BOOT_DEVICE_UART	0x41
22 #define BOOT_DEVICE_USBETH	0x44
23 #define BOOT_DEVICE_CPGMAC	0x46
24 
25 #define MMC_BOOT_DEVICES_START	BOOT_DEVICE_MMC2
26 #define MMC_BOOT_DEVICES_END	BOOT_DEVICE_MMC1
27 #elif defined(CONFIG_TI816X)
28 #define BOOT_DEVICE_XIP		0x01
29 #define BOOT_DEVICE_XIPWAIT	0x02
30 #define BOOT_DEVICE_NAND	0x03
31 #define BOOT_DEVICE_ONENAND	0x04
32 #define BOOT_DEVICE_MMC2	0x05 /* ROM only supports 2nd instance. */
33 #define BOOT_DEVICE_MMC1	0x06
34 #define BOOT_DEVICE_UART	0x43
35 #define BOOT_DEVICE_USB		0x45
36 
37 #define MMC_BOOT_DEVICES_START	BOOT_DEVICE_MMC2
38 #define MMC_BOOT_DEVICES_END	BOOT_DEVICE_MMC1
39 #elif defined(CONFIG_AM33XX)
40 #define BOOT_DEVICE_XIP		0x01
41 #define BOOT_DEVICE_XIPWAIT	0x02
42 #define BOOT_DEVICE_NAND	0x05
43 #define BOOT_DEVICE_NAND_I2C	0x06
44 #define BOOT_DEVICE_MMC1	0x08
45 #define BOOT_DEVICE_MMC2	0x09
46 #define BOOT_DEVICE_SPI		0x0B
47 #define BOOT_DEVICE_UART	0x41
48 #define BOOT_DEVICE_USBETH	0x44
49 #define BOOT_DEVICE_CPGMAC	0x46
50 #define BOOT_DEVICE_ONENAND	0xFF /* ROM does not support OneNAND. */
51 
52 #define MMC_BOOT_DEVICES_START	BOOT_DEVICE_MMC1
53 #define MMC_BOOT_DEVICES_END	BOOT_DEVICE_MMC2
54 #elif defined(CONFIG_AM43XX)
55 #define BOOT_DEVICE_NOR		0x01
56 #define BOOT_DEVICE_NAND	0x05
57 #define BOOT_DEVICE_MMC1	0x07
58 #define BOOT_DEVICE_MMC2	0x08
59 #define BOOT_DEVICE_SPI		0x0A
60 #define BOOT_DEVICE_USB		0x0D
61 #define BOOT_DEVICE_UART	0x41
62 #define BOOT_DEVICE_USBETH	0x45
63 #define BOOT_DEVICE_CPGMAC	0x47
64 
65 #define MMC_BOOT_DEVICES_START	BOOT_DEVICE_MMC1
66 #ifdef CONFIG_SPL_USB_SUPPORT
67 #define MMC_BOOT_DEVICES_END	BOOT_DEVICE_USB
68 #else
69 #define MMC_BOOT_DEVICES_END	BOOT_DEVICE_MMC2
70 #endif
71 #endif
72 
73 #endif
74