Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2012 |
| 4 | * Texas Instruments, <www.ti.com> |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 5 | */ |
| 6 | #ifndef _ASM_ARCH_SPL_H_ |
Marek Vasut | 4ad4cef | 2014-03-19 02:02:55 +0100 | [diff] [blame] | 7 | #define _ASM_ARCH_SPL_H_ |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 8 | |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 9 | #define BOOT_DEVICE_NONE 0x00 |
| 10 | #define BOOT_DEVICE_MMC2_2 0xFF |
| 11 | |
Tom Rini | 428deb3 | 2022-12-02 16:42:41 -0500 | [diff] [blame] | 12 | #if defined(CONFIG_TI816X) |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 13 | #define BOOT_DEVICE_XIP 0x01 |
| 14 | #define BOOT_DEVICE_XIPWAIT 0x02 |
| 15 | #define BOOT_DEVICE_NAND 0x03 |
Ladislav Michl | b5f0dc6 | 2017-04-01 17:14:28 +0200 | [diff] [blame] | 16 | #define BOOT_DEVICE_ONENAND 0x04 |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 17 | #define BOOT_DEVICE_MMC2 0x05 /* ROM only supports 2nd instance. */ |
| 18 | #define BOOT_DEVICE_MMC1 0x06 |
TENART Antoine | 35c7e52 | 2013-07-02 12:05:59 +0200 | [diff] [blame] | 19 | #define BOOT_DEVICE_UART 0x43 |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 20 | #define BOOT_DEVICE_USB 0x45 |
Tom Rini | 4652684 | 2013-04-05 06:21:44 +0000 | [diff] [blame] | 21 | |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 22 | #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2 |
| 23 | #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1 |
| 24 | #elif defined(CONFIG_AM33XX) |
| 25 | #define BOOT_DEVICE_XIP 0x01 |
| 26 | #define BOOT_DEVICE_XIPWAIT 0x02 |
| 27 | #define BOOT_DEVICE_NAND 0x05 |
| 28 | #define BOOT_DEVICE_NAND_I2C 0x06 |
| 29 | #define BOOT_DEVICE_MMC1 0x08 |
| 30 | #define BOOT_DEVICE_MMC2 0x09 |
Vogt, Christof | 5536ddc | 2016-04-05 10:56:57 +0200 | [diff] [blame] | 31 | #define BOOT_DEVICE_SPI 0x0B |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 32 | #define BOOT_DEVICE_UART 0x41 |
| 33 | #define BOOT_DEVICE_USBETH 0x44 |
| 34 | #define BOOT_DEVICE_CPGMAC 0x46 |
Ladislav Michl | c58502e | 2017-04-01 17:15:04 +0200 | [diff] [blame] | 35 | #define BOOT_DEVICE_ONENAND 0xFF /* ROM does not support OneNAND. */ |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 36 | |
| 37 | #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1 |
| 38 | #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2 |
Dan Murphy | cb367e1 | 2014-01-16 11:23:30 -0600 | [diff] [blame] | 39 | #elif defined(CONFIG_AM43XX) |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 40 | #define BOOT_DEVICE_NOR 0x01 |
| 41 | #define BOOT_DEVICE_NAND 0x05 |
| 42 | #define BOOT_DEVICE_MMC1 0x07 |
| 43 | #define BOOT_DEVICE_MMC2 0x08 |
| 44 | #define BOOT_DEVICE_SPI 0x0A |
Lokesh Vutla | f4cc504 | 2016-04-13 09:57:04 +0530 | [diff] [blame] | 45 | #define BOOT_DEVICE_USB 0x0D |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 46 | #define BOOT_DEVICE_UART 0x41 |
Lokesh Vutla | f4cc504 | 2016-04-13 09:57:04 +0530 | [diff] [blame] | 47 | #define BOOT_DEVICE_USBETH 0x45 |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 48 | #define BOOT_DEVICE_CPGMAC 0x47 |
| 49 | |
| 50 | #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1 |
Abel Vesa | 5ea11ba5 | 2019-02-01 16:40:07 +0000 | [diff] [blame] | 51 | #ifdef CONFIG_SPL_USB_STORAGE |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 52 | #define MMC_BOOT_DEVICES_END BOOT_DEVICE_USB |
Dan Murphy | cb367e1 | 2014-01-16 11:23:30 -0600 | [diff] [blame] | 53 | #else |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 54 | #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2 |
Dan Murphy | cb367e1 | 2014-01-16 11:23:30 -0600 | [diff] [blame] | 55 | #endif |
Tom Rini | a270595 | 2013-04-09 11:40:40 -0400 | [diff] [blame] | 56 | #endif |
Paul Kocialkowski | 851c4e7 | 2015-07-15 16:02:20 +0200 | [diff] [blame] | 57 | |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 58 | #endif |