blob: 6bd3ca0d076a3a5eb9f5e378e94caa1451b25302 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Tom Rini29d69dc2012-08-14 08:50:58 -07002/*
3 * (C) Copyright 2012
4 * Texas Instruments, <www.ti.com>
Tom Rini29d69dc2012-08-14 08:50:58 -07005 */
6#ifndef _ASM_ARCH_SPL_H_
Marek Vasut4ad4cef2014-03-19 02:02:55 +01007#define _ASM_ARCH_SPL_H_
Tom Rini29d69dc2012-08-14 08:50:58 -07008
Paul Kocialkowski851c4e72015-07-15 16:02:20 +02009#define BOOT_DEVICE_NONE 0x00
10#define BOOT_DEVICE_MMC2_2 0xFF
11
Tom Rini428deb32022-12-02 16:42:41 -050012#if defined(CONFIG_TI816X)
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020013#define BOOT_DEVICE_XIP 0x01
14#define BOOT_DEVICE_XIPWAIT 0x02
15#define BOOT_DEVICE_NAND 0x03
Ladislav Michlb5f0dc62017-04-01 17:14:28 +020016#define BOOT_DEVICE_ONENAND 0x04
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020017#define BOOT_DEVICE_MMC2 0x05 /* ROM only supports 2nd instance. */
18#define BOOT_DEVICE_MMC1 0x06
TENART Antoine35c7e522013-07-02 12:05:59 +020019#define BOOT_DEVICE_UART 0x43
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020020#define BOOT_DEVICE_USB 0x45
Tom Rini46526842013-04-05 06:21:44 +000021
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020022#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC2
23#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC1
24#elif defined(CONFIG_AM33XX)
25#define BOOT_DEVICE_XIP 0x01
26#define BOOT_DEVICE_XIPWAIT 0x02
27#define BOOT_DEVICE_NAND 0x05
28#define BOOT_DEVICE_NAND_I2C 0x06
29#define BOOT_DEVICE_MMC1 0x08
30#define BOOT_DEVICE_MMC2 0x09
Vogt, Christof5536ddc2016-04-05 10:56:57 +020031#define BOOT_DEVICE_SPI 0x0B
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020032#define BOOT_DEVICE_UART 0x41
33#define BOOT_DEVICE_USBETH 0x44
34#define BOOT_DEVICE_CPGMAC 0x46
Ladislav Michlc58502e2017-04-01 17:15:04 +020035#define BOOT_DEVICE_ONENAND 0xFF /* ROM does not support OneNAND. */
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020036
37#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
38#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
Dan Murphycb367e12014-01-16 11:23:30 -060039#elif defined(CONFIG_AM43XX)
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020040#define BOOT_DEVICE_NOR 0x01
41#define BOOT_DEVICE_NAND 0x05
42#define BOOT_DEVICE_MMC1 0x07
43#define BOOT_DEVICE_MMC2 0x08
44#define BOOT_DEVICE_SPI 0x0A
Lokesh Vutlaf4cc5042016-04-13 09:57:04 +053045#define BOOT_DEVICE_USB 0x0D
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020046#define BOOT_DEVICE_UART 0x41
Lokesh Vutlaf4cc5042016-04-13 09:57:04 +053047#define BOOT_DEVICE_USBETH 0x45
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020048#define BOOT_DEVICE_CPGMAC 0x47
49
50#define MMC_BOOT_DEVICES_START BOOT_DEVICE_MMC1
Abel Vesa5ea11ba52019-02-01 16:40:07 +000051#ifdef CONFIG_SPL_USB_STORAGE
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020052#define MMC_BOOT_DEVICES_END BOOT_DEVICE_USB
Dan Murphycb367e12014-01-16 11:23:30 -060053#else
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020054#define MMC_BOOT_DEVICES_END BOOT_DEVICE_MMC2
Dan Murphycb367e12014-01-16 11:23:30 -060055#endif
Tom Rinia2705952013-04-09 11:40:40 -040056#endif
Paul Kocialkowski851c4e72015-07-15 16:02:20 +020057
Tom Rini29d69dc2012-08-14 08:50:58 -070058#endif