]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: meson64: declare addr out of EXTRA_ENV_SETTINGS
authorNeil Armstrong <neil.armstrong@linaro.org>
Mon, 23 Oct 2023 12:41:35 +0000 (14:41 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 26 Oct 2023 15:39:03 +0000 (17:39 +0200)
In order to reuse addresses for DFU RAM, define them separately,
it's cleaner and will be easier to override.

Link: https://lore.kernel.org/r/20231023-usb-dfu-boot-v1-2-df9d121c67c1@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
include/configs/meson64.h

index 801cdae47081e6136284cca84bbe383072c0e742..a64817ec9b95a402194275ae0e41c45bab6e77c5 100644 (file)
        func(DHCP, dhcp, na)
 #endif
 
+#define BOOTM_SIZE             __stringify(0x1700000)
+#define KERNEL_ADDR_R          __stringify(0x08080000)
+#define KERNEL_COMP_ADDR_R     __stringify(0x0d080000)
+#define FDT_ADDR_R             __stringify(0x08008000)
+#define SCRIPT_ADDR_R          __stringify(0x08000000)
+#define PXEFILE_ADDR_R         __stringify(0x01080000)
+#define FDTOVERLAY_ADDR_R      __stringify(0x01000000)
+#define RAMDISK_ADDR_R         __stringify(0x13000000)
+
 #include <config_distro_bootcmd.h>
 
 #ifndef CFG_EXTRA_ENV_SETTINGS
        "stdin=" STDIN_CFG "\0" \
        "stdout=" STDOUT_CFG "\0" \
        "stderr=" STDOUT_CFG "\0" \
-       "kernel_comp_addr_r=0x0d080000\0" \
+       "kernel_comp_addr_r=" KERNEL_COMP_ADDR_R "\0" \
        "kernel_comp_size=0x2000000\0" \
-       "fdt_addr_r=0x08008000\0" \
-       "scriptaddr=0x08000000\0" \
-       "kernel_addr_r=0x08080000\0" \
-       "pxefile_addr_r=0x01080000\0" \
-       "fdtoverlay_addr_r=0x01000000\0" \
-       "ramdisk_addr_r=0x13000000\0" \
+       "fdt_addr_r=" FDT_ADDR_R "\0" \
+       "scriptaddr=" SCRIPT_ADDR_R "\0" \
+       "kernel_addr_r=" KERNEL_ADDR_R "\0" \
+       "pxefile_addr_r=" PXEFILE_ADDR_R "\0" \
+       "fdtoverlay_addr_r=" FDTOVERLAY_ADDR_R "\0" \
+       "ramdisk_addr_r=" RAMDISK_ADDR_R "\0" \
        "fdtfile=amlogic/" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
        BOOTENV
 #endif