blob: 95de9aa23541ab6c7953098bbeea4ede37fbb3dd [file] [log] [blame]
Tom Rini29d69dc2012-08-14 08:50:58 -07001/*
2 * (C) Copyright 2012
3 * Texas Instruments, <www.ti.com>
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Tom Rini29d69dc2012-08-14 08:50:58 -07006 */
7#ifndef _ASM_ARCH_SPL_H_
8#define _ASM_SPL_H_
9
TENART Antoine35c7e522013-07-02 12:05:59 +020010#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
16#define BOOT_DEVICE_MMC2_2 0xFF
17#else
Joel A Fernandesb55759e2012-09-18 04:30:51 +000018#define BOOT_DEVICE_XIP 2
Tom Rini29d69dc2012-08-14 08:50:58 -070019#define BOOT_DEVICE_NAND 5
Lokesh Vutla83269d02013-07-30 11:36:28 +053020#if defined(CONFIG_AM33XX) || defined(CONFIG_AM43XX)
Tom Rini29d69dc2012-08-14 08:50:58 -070021#define BOOT_DEVICE_MMC1 8
22#define BOOT_DEVICE_MMC2 9 /* eMMC or daughter card */
Matt Porter691fbe32013-03-15 10:07:06 +000023#elif defined(CONFIG_TI814X)
24#define BOOT_DEVICE_MMC1 9
25#define BOOT_DEVICE_MMC2 8 /* ROM only supports 2nd instance */
26#endif
Tom Rini0c1c9232012-10-16 13:06:07 +000027#define BOOT_DEVICE_SPI 11
Tom Rini29d69dc2012-08-14 08:50:58 -070028#define BOOT_DEVICE_UART 65
Ilya Yanok87b82cc2013-02-05 11:36:25 +000029#define BOOT_DEVICE_USBETH 68
Ilya Yanokf7a2c552012-09-18 00:22:50 +000030#define BOOT_DEVICE_CPGMAC 70
Tom Rini29d69dc2012-08-14 08:50:58 -070031#define BOOT_DEVICE_MMC2_2 0xFF
TENART Antoine35c7e522013-07-02 12:05:59 +020032#endif
Tom Rini46526842013-04-05 06:21:44 +000033
Lokesh Vutla83269d02013-07-30 11:36:28 +053034#if defined(CONFIG_AM33XX) || defined(CONFIG_AM43XX)
Tom Rini46526842013-04-05 06:21:44 +000035#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
36#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
TENART Antoine35c7e522013-07-02 12:05:59 +020037#elif defined(CONFIG_TI81XX)
Tom Rinia2705952013-04-09 11:40:40 -040038#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2
39#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1
40#endif
Tom Rini29d69dc2012-08-14 08:50:58 -070041#endif