blob: f744ab0782e1846cdb86a06e7f3100d24350266e [file] [log] [blame]
Tom Rini55cdbb82012-08-14 08:50:58 -07001/*
2 * (C) Copyright 2012
3 * Texas Instruments, <www.ti.com>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Tom Rini55cdbb82012-08-14 08:50:58 -07006 */
7#ifndef _ASM_ARCH_SPL_H_
Marek Vasut463bb192014-03-19 02:02:55 +01008#define _ASM_ARCH_SPL_H_
Tom Rini55cdbb82012-08-14 08:50:58 -07009
Paul Kocialkowski62c56742015-07-15 16:02:20 +020010#define BOOT_DEVICE_NONE 0x00
11#define BOOT_DEVICE_MMC2_2 0xFF
Tom Rinic3d2c242013-04-05 06:21:44 +000012
Paul Kocialkowski62c56742015-07-15 16:02:20 +020013#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
Tom Rini74f40ea2013-04-09 11:40:40 -040025#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2
26#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1
Paul Kocialkowski62c56742015-07-15 16:02:20 +020027#elif defined(CONFIG_TI816X)
28#define BOOT_DEVICE_XIP 0x01
29#define BOOT_DEVICE_XIPWAIT 0x02
30#define BOOT_DEVICE_NAND 0x03
31#define BOOT_DEVICE_ONENAD 0x04
32#define BOOT_DEVICE_MMC2 0x05 /* ROM only supports 2nd instance. */
33#define BOOT_DEVICE_MMC1 0x06
34#define BOOT_DEVICE_UART 0x43
35#define BOOT_DEVICE_USB 0x45
36
37#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, Christof7f961c92016-04-05 10:56:57 +020046#define BOOT_DEVICE_SPI 0x0B
Paul Kocialkowski62c56742015-07-15 16:02:20 +020047#define BOOT_DEVICE_UART 0x41
48#define BOOT_DEVICE_USBETH 0x44
49#define BOOT_DEVICE_CPGMAC 0x46
50
51#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
52#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
53#elif defined(CONFIG_AM43XX)
54#define BOOT_DEVICE_NOR 0x01
55#define BOOT_DEVICE_NAND 0x05
56#define BOOT_DEVICE_MMC1 0x07
57#define BOOT_DEVICE_MMC2 0x08
58#define BOOT_DEVICE_SPI 0x0A
Lokesh Vutlabd716dd2016-04-13 09:57:04 +053059#define BOOT_DEVICE_USB 0x0D
Paul Kocialkowski62c56742015-07-15 16:02:20 +020060#define BOOT_DEVICE_UART 0x41
Lokesh Vutlabd716dd2016-04-13 09:57:04 +053061#define BOOT_DEVICE_USBETH 0x45
Paul Kocialkowski62c56742015-07-15 16:02:20 +020062#define BOOT_DEVICE_CPGMAC 0x47
63
64#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
65#ifdef CONFIG_SPL_USB_SUPPORT
66#define MMC_BOOT_DEVICES_END BOOT_DEVICE_USB
67#else
68#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
Tom Rini74f40ea2013-04-09 11:40:40 -040069#endif
Tom Rini55cdbb82012-08-14 08:50:58 -070070#endif
Paul Kocialkowski62c56742015-07-15 16:02:20 +020071
72#endif