Bryan Brattlof | daa39a6 | 2022-11-03 19:13:55 -0500 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ |
| 4 | */ |
| 5 | |
| 6 | #ifndef _ASM_ARCH_AM62A_SPL_H_ |
| 7 | #define _ASM_ARCH_AM62A_SPL_H_ |
| 8 | |
| 9 | /* Primary BootMode devices */ |
| 10 | #define BOOT_DEVICE_SPI_NAND 0x00 |
| 11 | #define BOOT_DEVICE_RAM 0xFF |
| 12 | #define BOOT_DEVICE_OSPI 0x01 |
| 13 | #define BOOT_DEVICE_QSPI 0x02 |
| 14 | #define BOOT_DEVICE_SPI 0x03 |
| 15 | #define BOOT_DEVICE_CPGMAC 0x04 |
| 16 | #define BOOT_DEVICE_ETHERNET_RGMII 0x04 |
| 17 | #define BOOT_DEVICE_ETHERNET_RMII 0x05 |
| 18 | #define BOOT_DEVICE_I2C 0x06 |
| 19 | #define BOOT_DEVICE_UART 0x07 |
| 20 | #define BOOT_DEVICE_MMC 0x08 |
| 21 | #define BOOT_DEVICE_EMMC 0x09 |
| 22 | |
| 23 | #define BOOT_DEVICE_USB 0x2A |
| 24 | #define BOOT_DEVICE_DFU 0x0A |
| 25 | #define BOOT_DEVICE_GPMC_NAND 0x0B |
| 26 | #define BOOT_DEVICE_GPMC_NOR 0x0C |
| 27 | #define BOOT_DEVICE_XSPI 0x0E |
| 28 | #define BOOT_DEVICE_NOBOOT 0x0F |
| 29 | |
| 30 | /* U-Boot used aliases */ |
| 31 | #define BOOT_DEVICE_ETHERNET 0x04 |
| 32 | #define BOOT_DEVICE_SPINAND 0x10 |
| 33 | #define BOOT_DEVICE_MMC2 0x08 |
| 34 | #define BOOT_DEVICE_MMC1 0x09 |
| 35 | /* Invalid */ |
| 36 | #define BOOT_DEVICE_MMC2_2 0x1F |
| 37 | |
| 38 | /* Backup BootMode devices */ |
| 39 | #define BACKUP_BOOT_DEVICE_DFU 0x01 |
| 40 | #define BACKUP_BOOT_DEVICE_UART 0x03 |
| 41 | #define BACKUP_BOOT_DEVICE_ETHERNET 0x04 |
| 42 | #define BACKUP_BOOT_DEVICE_MMC 0x05 |
| 43 | #define BACKUP_BOOT_DEVICE_SPI 0x06 |
| 44 | #define BACKUP_BOOT_DEVICE_I2C 0x07 |
| 45 | #define BACKUP_BOOT_DEVICE_USB 0x09 |
| 46 | |
| 47 | #define K3_PRIMARY_BOOTMODE 0x0 |
| 48 | |
| 49 | #endif /* _ASM_ARCH_AM62A_SPL_H_ */ |