xref: /openbmc/u-boot/arch/arm/include/asm/arch-am33xx/spl.h (revision b89074f65047c4058741ed2bf3e6ff0c5af4c5bc)
183d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
255cdbb8dSTom Rini /*
355cdbb8dSTom Rini  * (C) Copyright 2012
455cdbb8dSTom Rini  * Texas Instruments, <www.ti.com>
555cdbb8dSTom Rini  */
655cdbb8dSTom Rini #ifndef	_ASM_ARCH_SPL_H_
7463bb19eSMarek Vasut #define	_ASM_ARCH_SPL_H_
855cdbb8dSTom Rini 
962c5674eSPaul Kocialkowski #define BOOT_DEVICE_NONE	0x00
101fb68b84SLokesh Vutla #define BOOT_DEVICE_MMC2_2	0xFF
11c3d2c24fSTom Rini 
1262c5674eSPaul Kocialkowski #if defined(CONFIG_TI814X)
1362c5674eSPaul Kocialkowski #define BOOT_DEVICE_XIP		0x01
1462c5674eSPaul Kocialkowski #define BOOT_DEVICE_XIPWAIT	0x02
1562c5674eSPaul Kocialkowski #define BOOT_DEVICE_NAND	0x05
1662c5674eSPaul Kocialkowski #define BOOT_DEVICE_NAND_I2C	0x06
1762c5674eSPaul Kocialkowski #define BOOT_DEVICE_MMC2	0x08 /* ROM only supports 2nd instance. */
1862c5674eSPaul Kocialkowski #define BOOT_DEVICE_MMC1	0x09
1962c5674eSPaul Kocialkowski #define BOOT_DEVICE_SPI		0x15
2062c5674eSPaul Kocialkowski #define BOOT_DEVICE_UART	0x41
2162c5674eSPaul Kocialkowski #define BOOT_DEVICE_USBETH	0x44
2262c5674eSPaul Kocialkowski #define BOOT_DEVICE_CPGMAC	0x46
2362c5674eSPaul Kocialkowski 
2462c5674eSPaul Kocialkowski #define MMC_BOOT_DEVICES_START	BOOT_DEVICE_MMC2
2562c5674eSPaul Kocialkowski #define MMC_BOOT_DEVICES_END	BOOT_DEVICE_MMC1
2662c5674eSPaul Kocialkowski #elif defined(CONFIG_TI816X)
2762c5674eSPaul Kocialkowski #define BOOT_DEVICE_XIP		0x01
2862c5674eSPaul Kocialkowski #define BOOT_DEVICE_XIPWAIT	0x02
2962c5674eSPaul Kocialkowski #define BOOT_DEVICE_NAND	0x03
30df9f07faSLadislav Michl #define BOOT_DEVICE_ONENAND	0x04
3162c5674eSPaul Kocialkowski #define BOOT_DEVICE_MMC2	0x05 /* ROM only supports 2nd instance. */
3262c5674eSPaul Kocialkowski #define BOOT_DEVICE_MMC1	0x06
3362c5674eSPaul Kocialkowski #define BOOT_DEVICE_UART	0x43
3462c5674eSPaul Kocialkowski #define BOOT_DEVICE_USB		0x45
3562c5674eSPaul Kocialkowski 
3662c5674eSPaul Kocialkowski #define MMC_BOOT_DEVICES_START	BOOT_DEVICE_MMC2
3762c5674eSPaul Kocialkowski #define MMC_BOOT_DEVICES_END	BOOT_DEVICE_MMC1
3862c5674eSPaul Kocialkowski #elif defined(CONFIG_AM33XX)
3962c5674eSPaul Kocialkowski #define BOOT_DEVICE_XIP		0x01
4062c5674eSPaul Kocialkowski #define BOOT_DEVICE_XIPWAIT	0x02
4162c5674eSPaul Kocialkowski #define BOOT_DEVICE_NAND	0x05
4262c5674eSPaul Kocialkowski #define BOOT_DEVICE_NAND_I2C	0x06
4362c5674eSPaul Kocialkowski #define BOOT_DEVICE_MMC1	0x08
4462c5674eSPaul Kocialkowski #define BOOT_DEVICE_MMC2	0x09
457f961c90SVogt, Christof #define BOOT_DEVICE_SPI		0x0B
4662c5674eSPaul Kocialkowski #define BOOT_DEVICE_UART	0x41
4762c5674eSPaul Kocialkowski #define BOOT_DEVICE_USBETH	0x44
4862c5674eSPaul Kocialkowski #define BOOT_DEVICE_CPGMAC	0x46
49bf863922SLadislav Michl #define BOOT_DEVICE_ONENAND	0xFF /* ROM does not support OneNAND. */
5062c5674eSPaul Kocialkowski 
51c3d2c24fSTom Rini #define MMC_BOOT_DEVICES_START	BOOT_DEVICE_MMC1
52c3d2c24fSTom Rini #define MMC_BOOT_DEVICES_END	BOOT_DEVICE_MMC2
538cffe5bdSDan Murphy #elif defined(CONFIG_AM43XX)
5462c5674eSPaul Kocialkowski #define BOOT_DEVICE_NOR		0x01
5562c5674eSPaul Kocialkowski #define BOOT_DEVICE_NAND	0x05
5662c5674eSPaul Kocialkowski #define BOOT_DEVICE_MMC1	0x07
5762c5674eSPaul Kocialkowski #define BOOT_DEVICE_MMC2	0x08
5862c5674eSPaul Kocialkowski #define BOOT_DEVICE_SPI		0x0A
59bd716dd0SLokesh Vutla #define BOOT_DEVICE_USB		0x0D
6062c5674eSPaul Kocialkowski #define BOOT_DEVICE_UART	0x41
61bd716dd0SLokesh Vutla #define BOOT_DEVICE_USBETH	0x45
6262c5674eSPaul Kocialkowski #define BOOT_DEVICE_CPGMAC	0x47
6362c5674eSPaul Kocialkowski 
648cffe5bdSDan Murphy #define MMC_BOOT_DEVICES_START	BOOT_DEVICE_MMC1
65*79536013SAbel Vesa #ifdef CONFIG_SPL_USB_STORAGE
668cffe5bdSDan Murphy #define MMC_BOOT_DEVICES_END	BOOT_DEVICE_USB
678cffe5bdSDan Murphy #else
688cffe5bdSDan Murphy #define MMC_BOOT_DEVICES_END	BOOT_DEVICE_MMC2
698cffe5bdSDan Murphy #endif
7074f40ea1STom Rini #endif
7162c5674eSPaul Kocialkowski 
7255cdbb8dSTom Rini #endif
73