mach-sc5xx: Add USB boot command

Add the USB boot command to the environments
of the boards that support it.

Signed-off-by: Caleb Ethridge <caleb.ethridge@analog.com>
This commit is contained in:
Caleb Ethridge
2026-06-04 12:24:18 -06:00
committed by Tom Rini
parent 3b9b94ef68
commit a29a895bdc
8 changed files with 15 additions and 0 deletions
+1
View File
@@ -10,5 +10,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
#define USE_SPI
#define USE_RAM
#define USE_MMC
#define USE_USB
#include <env/adi/adi_boot.env>
+1
View File
@@ -9,5 +9,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
#define USE_NFS
#define USE_SPI
#define USE_RAM
#define USE_USB
#include <env/adi/adi_boot.env>
+1
View File
@@ -10,5 +10,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
#define USE_RAM
#define USE_MMC
#define USE_SPI
#define USE_USB
#include <env/adi/adi_boot.env>
+1
View File
@@ -10,5 +10,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
#define USE_RAM
#define USE_SPI
#define USE_MMC
#define USE_USB
#include <env/adi/adi_boot.env>
@@ -11,5 +11,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
#define USE_OSPI
#define USE_RAM
#define USE_MMC
#define USE_USB
#include <env/adi/adi_boot.env>
@@ -11,5 +11,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
#define USE_OSPI
#define USE_RAM
#define USE_MMC
#define USE_USB
#include <env/adi/adi_boot.env>
@@ -11,5 +11,6 @@ loadaddr=CONFIG_SC5XX_LOADADDR
#define USE_OSPI
#define USE_RAM
#define USE_MMC
#define USE_USB
#include <env/adi/adi_boot.env>
+8
View File
@@ -67,3 +67,11 @@ ramboot=wget ${loadaddr} ${serverip}:/fitImage;
run ramargs;
bootm ${loadaddr}
#endif
#if defined(USE_USB)
usbargs=setenv bootargs root=/dev/sda2 rw rootfstype=ext4 rootwait ${adi_bootargs}
usbboot=usb start;
run usbargs;
ext4load usb 0:1 ${loadaddr} /fitImage;
bootm ${loadaddr}
#endif