Keerthy | 05d670e | 2021-04-23 11:27:33 -0500 | [diff] [blame] | 1 | /* 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 |
Vignesh Raghavendra | a110b33 | 2021-12-24 12:55:33 +0530 | [diff] [blame] | 15 | #define BOOT_DEVICE_CPGMAC 0x04 |
Keerthy | 05d670e | 2021-04-23 11:27:33 -0500 | [diff] [blame] | 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 | |
Aswath Govindraju | 8a05c9a | 2021-06-04 22:00:32 +0530 | [diff] [blame] | 23 | #define BOOT_DEVICE_USB 0x2A |
| 24 | #define BOOT_DEVICE_DFU 0x0A |
Roger Quadros | b33b246 | 2024-01-11 15:19:20 +0200 | [diff] [blame] | 25 | #define BOOT_DEVICE_NAND 0x0B |
Keerthy | 05d670e | 2021-04-23 11:27:33 -0500 | [diff] [blame] | 26 | #define BOOT_DEVICE_GPMC_NOR 0x0C |
| 27 | #define BOOT_DEVICE_PCIE 0x0D |
| 28 | #define BOOT_DEVICE_XSPI 0x0E |
| 29 | |
| 30 | #define BOOT_DEVICE_NOBOOT 0x0F |
| 31 | |
| 32 | #define BOOT_DEVICE_MMC2 0x08 |
| 33 | #define BOOT_DEVICE_MMC1 0x09 |
| 34 | /* INVALID */ |
| 35 | #define BOOT_DEVICE_MMC2_2 0x1F |
| 36 | |
| 37 | /* Backup BootMode devices */ |
Aswath Govindraju | 8a05c9a | 2021-06-04 22:00:32 +0530 | [diff] [blame] | 38 | #define BACKUP_BOOT_DEVICE_DFU 0x01 |
Keerthy | 05d670e | 2021-04-23 11:27:33 -0500 | [diff] [blame] | 39 | #define BACKUP_BOOT_DEVICE_UART 0x03 |
| 40 | #define BACKUP_BOOT_DEVICE_ETHERNET 0x04 |
| 41 | #define BACKUP_BOOT_DEVICE_MMC 0x05 |
| 42 | #define BACKUP_BOOT_DEVICE_SPI 0x06 |
| 43 | #define BACKUP_BOOT_DEVICE_I2C 0x07 |
Aswath Govindraju | 8a05c9a | 2021-06-04 22:00:32 +0530 | [diff] [blame] | 44 | #define BACKUP_BOOT_DEVICE_USB 0x09 |
Keerthy | 05d670e | 2021-04-23 11:27:33 -0500 | [diff] [blame] | 45 | |
| 46 | #define K3_PRIMARY_BOOTMODE 0x0 |
| 47 | |
| 48 | #endif |