Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2012 |
| 3 | * Texas Instruments, <www.ti.com> |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License, or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 21 | * MA 02111-1307 USA |
| 22 | */ |
| 23 | #ifndef _ASM_ARCH_SPL_H_ |
| 24 | #define _ASM_SPL_H_ |
| 25 | |
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 |
Matt Porter | 691fbe3 | 2013-03-15 10:07:06 +0000 | [diff] [blame] | 28 | #ifdef 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 |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 39 | #define BOOT_DEVICE_MMC2_2 0xFF |
Tom Rini | 4652684 | 2013-04-05 06:21:44 +0000 | [diff] [blame] | 40 | |
Tom Rini | a270595 | 2013-04-09 11:40:40 -0400 | [diff] [blame^] | 41 | #ifdef CONFIG_AM33XX |
Tom Rini | 4652684 | 2013-04-05 06:21:44 +0000 | [diff] [blame] | 42 | #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1 |
| 43 | #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2 |
Tom Rini | a270595 | 2013-04-09 11:40:40 -0400 | [diff] [blame^] | 44 | #elif defined(CONFIG_TI814X) |
| 45 | #define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2 |
| 46 | #define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1 |
| 47 | #endif |
Tom Rini | 29d69dc | 2012-08-14 08:50:58 -0700 | [diff] [blame] | 48 | #endif |