summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaleb Ethridge <[email protected]>2026-05-21 09:53:24 -0400
committerTom Rini <[email protected]>2026-06-04 12:24:18 -0600
commitc6796425da45f63661459e31cb7809f517080417 (patch)
tree5f575d684b5f4c0ac9f888428eb70586e859f6d9 /include
parent21eeb0176bbc009aabc629e89c6c0d42266e8430 (diff)
arm: sc5xx: Remove SC5XX_LOADADDR
Remove the SC5XX_LOADADDR Kconfig option, replace its users with CONFIG_SYS_LOAD_ADDR, and update the ADI boot environment to use `loadaddr`. SC5XX_LOADADDR was an ADI-specific duplicate of standard U-Boot load address handling. U-Boot already uses CONFIG_SYS_LOAD_ADDR for the default load address and `loadaddr` for boot commands, so keeping separate SC5XX-specific names is redundant. Signed-off-by: Ozan Durgut <[email protected]> Signed-off-by: Caleb Ethridge <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/env/adi/adi_boot.env18
1 files changed, 8 insertions, 10 deletions
diff --git a/include/env/adi/adi_boot.env b/include/env/adi/adi_boot.env
index b75baabdca6..3c83826cf9a 100644
--- a/include/env/adi/adi_boot.env
+++ b/include/env/adi/adi_boot.env
@@ -1,10 +1,3 @@
-/*
- * A target board needs to set these variables for the commands below to work:
- *
- * - adi_image_offset, location of the fitImage on the SPI flash
- * - loadaddr, where you want to load things
- */
-
#ifdef CONFIG_SC59X_64
#define EARLY_PRINTK earlycon=adi_uart,0x31003000
#else
@@ -21,6 +14,11 @@ initrd_high=0xffffffffffffffff
#else
initrd_high=0xffffffff
#endif
+#if defined(CONFIG_SC59X) || defined(CONFIG_SC59X_64)
+adi_image_offset=0x100000
+#else
+adi_image_offset=0xd0000
+#endif
/* Args for each boot mode */
adi_bootargs=EARLY_PRINTK console=ttySC0,CONFIG_BAUDRATE vmalloc=512M
@@ -35,7 +33,7 @@ nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath},tcp,nfs
nfsboot=run nfsargs;
run addip;
wget ${loadaddr} ${serverip}:/fitImage;
- bootm ${loadaddr}
+ bootm
#endif
#if defined(USE_MMC)
@@ -43,7 +41,7 @@ mmcargs=setenv bootargs root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait ${adi_bo
mmcboot=mmc rescan;
ext4load mmc 0:1 ${loadaddr} /fitImage;
run mmcargs;
- bootm ${loadaddr}
+ bootm
#endif
#if defined(USE_SPI)
@@ -65,7 +63,7 @@ ospiboot=run ospiargs;
#if defined(USE_RAM)
ramboot=wget ${loadaddr} ${serverip}:/fitImage;
run ramargs;
- bootm ${loadaddr}
+ bootm
#endif
#if defined(USE_USB)