blob: 4b5a48edd87781f0c406a8bc65ffa06dbe80403c [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_
Marek Vasut4ad4cef2014-03-19 02:02:55 +01008#define _ASM_ARCH_SPL_H_
Tom Rini29d69dc2012-08-14 08:50:58 -07009
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020010#define BOOT_DEVICE_NONE 0x00
11#define BOOT_DEVICE_MMC2_2 0xFF
12
13#if defined(CONFIG_TI814X)
14#define BOOT_DEVICE_XIP 0x01
15#define BOOT_DEVICE_XIPWAIT 0x02
16#define BOOT_DEVICE_NAND 0x05
17#define BOOT_DEVICE_NAND_I2C 0x06
18#define BOOT_DEVICE_MMC2 0x08 /* ROM only supports 2nd instance. */
19#define BOOT_DEVICE_MMC1 0x09
20#define BOOT_DEVICE_SPI 0x15
21#define BOOT_DEVICE_UART 0x41
22#define BOOT_DEVICE_USBETH 0x44
23#define BOOT_DEVICE_CPGMAC 0x46
24
25#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2
26#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1
27#elif defined(CONFIG_TI816X)
28#define BOOT_DEVICE_XIP 0x01
29#define BOOT_DEVICE_XIPWAIT 0x02
30#define BOOT_DEVICE_NAND 0x03
Ladislav Michlb5f0dc62017-04-01 17:14:28 +020031#define BOOT_DEVICE_ONENAND 0x04
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020032#define BOOT_DEVICE_MMC2 0x05 /* ROM only supports 2nd instance. */
33#define BOOT_DEVICE_MMC1 0x06
TENART Antoine35c7e522013-07-02 12:05:59 +020034#define BOOT_DEVICE_UART 0x43
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020035#define BOOT_DEVICE_USB 0x45
Tom Rini46526842013-04-05 06:21:44 +000036
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020037#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2
38#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1
39#elif defined(CONFIG_AM33XX)
40#define BOOT_DEVICE_XIP 0x01
41#define BOOT_DEVICE_XIPWAIT 0x02
42#define BOOT_DEVICE_NAND 0x05
43#define BOOT_DEVICE_NAND_I2C 0x06
44#define BOOT_DEVICE_MMC1 0x08
45#define BOOT_DEVICE_MMC2 0x09
Vogt, Christof5536ddc2016-04-05 10:56:57 +020046#define BOOT_DEVICE_SPI 0x0B
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020047#define BOOT_DEVICE_UART 0x41
48#define BOOT_DEVICE_USBETH 0x44
49#define BOOT_DEVICE_CPGMAC 0x46
Ladislav Michlc58502e2017-04-01 17:15:04 +020050#define BOOT_DEVICE_ONENAND 0xFF /* ROM does not support OneNAND. */
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020051
52#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
53#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
Dan Murphycb367e12014-01-16 11:23:30 -060054#elif defined(CONFIG_AM43XX)
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020055#define BOOT_DEVICE_NOR 0x01
56#define BOOT_DEVICE_NAND 0x05
57#define BOOT_DEVICE_MMC1 0x07
58#define BOOT_DEVICE_MMC2 0x08
59#define BOOT_DEVICE_SPI 0x0A
Lokesh Vutlaf4cc5042016-04-13 09:57:04 +053060#define BOOT_DEVICE_USB 0x0D
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020061#define BOOT_DEVICE_UART 0x41
Lokesh Vutlaf4cc5042016-04-13 09:57:04 +053062#define BOOT_DEVICE_USBETH 0x45
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020063#define BOOT_DEVICE_CPGMAC 0x47
64
65#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
Dan Murphycb367e12014-01-16 11:23:30 -060066#ifdef CONFIG_SPL_USB_SUPPORT
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020067#define MMC_BOOT_DEVICES_END BOOT_DEVICE_USB
Dan Murphycb367e12014-01-16 11:23:30 -060068#else
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020069#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
Dan Murphycb367e12014-01-16 11:23:30 -060070#endif
Tom Rinia2705952013-04-09 11:40:40 -040071#endif
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020072
Tom Rini29d69dc2012-08-14 08:50:58 -070073#endif