mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-18 06:38:15 +01:00
arm: mach-k3: j721e: Enable OSPI boot
Add boot ROM XSPI bootmode, and set to BOOT_DEVICE_SPI if detected. Signed-off-by: Jonathan Humphreys <j-humphreys@ti.com> Reviewed-by: Udit Kumar <u-kumar1@ti.com>
This commit is contained in:
parent
5fc08887da
commit
85aca577f6
@ -24,8 +24,9 @@
|
|||||||
#define BOOT_DEVICE_UFS 0x13
|
#define BOOT_DEVICE_UFS 0x13
|
||||||
#define BOOT_DEVIE_GPMC 0x14
|
#define BOOT_DEVIE_GPMC 0x14
|
||||||
#define BOOT_DEVICE_PCIE 0x15
|
#define BOOT_DEVICE_PCIE 0x15
|
||||||
#define BOOT_DEVICE_MMC2_2 0x16
|
#define BOOT_DEVICE_XSPI 0x16
|
||||||
#define BOOT_DEVICE_RAM 0x17
|
#define BOOT_DEVICE_RAM 0x17
|
||||||
|
#define BOOT_DEVICE_MMC2_2 0xFF /* Invalid value */
|
||||||
|
|
||||||
/* Backup boot modes with MCU Only = 0 */
|
/* Backup boot modes with MCU Only = 0 */
|
||||||
#define BACKUP_BOOT_DEVICE_RAM 0x0
|
#define BACKUP_BOOT_DEVICE_RAM 0x0
|
||||||
|
@ -346,7 +346,8 @@ static u32 __get_primary_bootmedia(u32 main_devstat, u32 wkup_devstat)
|
|||||||
bootmode |= (main_devstat & MAIN_DEVSTAT_BOOT_MODE_B_MASK) <<
|
bootmode |= (main_devstat & MAIN_DEVSTAT_BOOT_MODE_B_MASK) <<
|
||||||
BOOT_MODE_B_SHIFT;
|
BOOT_MODE_B_SHIFT;
|
||||||
|
|
||||||
if (bootmode == BOOT_DEVICE_OSPI || bootmode == BOOT_DEVICE_QSPI)
|
if (bootmode == BOOT_DEVICE_OSPI || bootmode == BOOT_DEVICE_QSPI ||
|
||||||
|
bootmode == BOOT_DEVICE_XSPI)
|
||||||
bootmode = BOOT_DEVICE_SPI;
|
bootmode = BOOT_DEVICE_SPI;
|
||||||
|
|
||||||
if (bootmode == BOOT_DEVICE_MMC2) {
|
if (bootmode == BOOT_DEVICE_MMC2) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user