Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2012 |
| 3 | * Texas Instruments, <www.ti.com> |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 6 | */ |
| 7 | #ifndef _ASM_ARCH_SPL_H_ |
Marek Vasut | 4ad4cef | 2014-03-19 02:02:55 +0100 | [diff] [blame] | 8 | #define _ASM_ARCH_SPL_H_ |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 9 | |
TENART Antoine | 35c7e52 | 2013-07-02 12:05:59 +0200 | [diff] [blame] | 10 | #if defined(CONFIG_TI816X) |
| 11 | #define BOOT_DEVICE_XIP 2 |
| 12 | #define BOOT_DEVICE_NAND 3 |
| 13 | #define BOOT_DEVICE_MMC1 6 |
| 14 | #define BOOT_DEVICE_MMC2 5 |
| 15 | #define BOOT_DEVICE_UART 0x43 |
Lokesh Vutla | 1bda05d | 2013-12-10 15:02:18 +0530 | [diff] [blame] | 16 | #elif defined(CONFIG_AM43XX) |
| 17 | #define BOOT_DEVICE_NOR 1 |
| 18 | #define BOOT_DEVICE_NAND 5 |
| 19 | #define BOOT_DEVICE_MMC1 7 |
| 20 | #define BOOT_DEVICE_MMC2 8 |
| 21 | #define BOOT_DEVICE_SPI 10 |
Dan Murphy | cb367e1 | 2014-01-16 11:23:30 -0600 | [diff] [blame] | 22 | #define BOOT_DEVICE_USB 13 |
Lokesh Vutla | 1bda05d | 2013-12-10 15:02:18 +0530 | [diff] [blame] | 23 | #define BOOT_DEVICE_UART 65 |
| 24 | #define BOOT_DEVICE_CPGMAC 71 |
TENART Antoine | 35c7e52 | 2013-07-02 12:05:59 +0200 | [diff] [blame] | 25 | #else |
Joel A Fernandes | b55759e | 2012-09-18 04:30:51 +0000 | [diff] [blame] | 26 | #define BOOT_DEVICE_XIP 2 |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 27 | #define BOOT_DEVICE_NAND 5 |
Lokesh Vutla | 1bda05d | 2013-12-10 15:02:18 +0530 | [diff] [blame] | 28 | #if defined(CONFIG_AM33XX) |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 29 | #define BOOT_DEVICE_MMC1 8 |
| 30 | #define BOOT_DEVICE_MMC2 9 /* eMMC or daughter card */ |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 31 | #elif defined(CONFIG_TI814X) |
| 32 | #define BOOT_DEVICE_MMC1 9 |
| 33 | #define BOOT_DEVICE_MMC2 8 /* ROM only supports 2nd instance */ |
| 34 | #endif |
Tom Rini | 0c1c923 | 2012-10-16 13:06:07 +0000 | [diff] [blame] | 35 | #define BOOT_DEVICE_SPI 11 |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 36 | #define BOOT_DEVICE_UART 65 |
Ilya Yanok | 87b82cc | 2013-02-05 11:36:25 +0000 | [diff] [blame] | 37 | #define BOOT_DEVICE_USBETH 68 |
Ilya Yanok | f7a2c55 | 2012-09-18 00:22:50 +0000 | [diff] [blame] | 38 | #define BOOT_DEVICE_CPGMAC 70 |
TENART Antoine | 35c7e52 | 2013-07-02 12:05:59 +0200 | [diff] [blame] | 39 | #endif |
Lokesh Vutla | 1bda05d | 2013-12-10 15:02:18 +0530 | [diff] [blame] | 40 | #define BOOT_DEVICE_MMC2_2 0xFF |
Tom Rini | 4652684 | 2013-04-05 06:21:44 +0000 | [diff] [blame] | 41 | |
Dan Murphy | cb367e1 | 2014-01-16 11:23:30 -0600 | [diff] [blame] | 42 | #if defined(CONFIG_AM33XX) |
| 43 | #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1 |
| 44 | #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2 |
| 45 | #elif defined(CONFIG_AM43XX) |
| 46 | #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1 |
| 47 | #ifdef CONFIG_SPL_USB_SUPPORT |
| 48 | #define MMC_BOOT_DEVICES_END BOOT_DEVICE_USB |
| 49 | #else |
| 50 | #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2 |
| 51 | #endif |
TENART Antoine | 35c7e52 | 2013-07-02 12:05:59 +0200 | [diff] [blame] | 52 | #elif defined(CONFIG_TI81XX) |
Tom Rini | a270595 | 2013-04-09 11:40:40 -0400 | [diff] [blame] | 53 | #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2 |
| 54 | #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1 |
| 55 | #endif |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 56 | #endif |