summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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)