blob: 36826cfc4ed0e68e45728e54d95574b232f080a6 [file] [log] [blame]
Keerthy05d670e2021-04-23 11:27:33 -05001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/
4 * Keerthy <j-keerthy@ti.com>
5 */
6#ifndef _ASM_ARCH_AM64_SPL_H_
7#define _ASM_ARCH_AM64_SPL_H_
8
9/* Primary BootMode devices */
10#define BOOT_DEVICE_RAM 0x00
11#define BOOT_DEVICE_OSPI 0x01
12#define BOOT_DEVICE_QSPI 0x02
13#define BOOT_DEVICE_SPI 0x03
14#define BOOT_DEVICE_ETHERNET 0x04
15#define BOOT_DEVICE_ETHERNET_RGMII 0x04
16#define BOOT_DEVICE_ETHERNET_RMII 0x05
17#define BOOT_DEVICE_I2C 0x06
18#define BOOT_DEVICE_UART 0x07
19#define BOOT_DEVICE_MMC 0x08
20#define BOOT_DEVICE_EMMC 0x09
21
22#define BOOT_DEVICE_USB 0x0A
23#define BOOT_DEVICE_GPMC_NOR 0x0C
24#define BOOT_DEVICE_PCIE 0x0D
25#define BOOT_DEVICE_XSPI 0x0E
26
27#define BOOT_DEVICE_NOBOOT 0x0F
28
29#define BOOT_DEVICE_MMC2 0x08
30#define BOOT_DEVICE_MMC1 0x09
31/* INVALID */
32#define BOOT_DEVICE_MMC2_2 0x1F
33
34/* Backup BootMode devices */
35#define BACKUP_BOOT_DEVICE_USB 0x01
36#define BACKUP_BOOT_DEVICE_UART 0x03
37#define BACKUP_BOOT_DEVICE_ETHERNET 0x04
38#define BACKUP_BOOT_DEVICE_MMC 0x05
39#define BACKUP_BOOT_DEVICE_SPI 0x06
40#define BACKUP_BOOT_DEVICE_I2C 0x07
41
42#define K3_PRIMARY_BOOTMODE 0x0
43
44#endif