arm64: zynqmp: Use CONFIG_SPL_FS_LOAD_PAYLOAD_NAME in binman
authorMichal Simek <michal.simek@amd.com>
Mon, 7 Apr 2025 15:17:30 +0000 (17:17 +0200)
committerMichal Simek <michal.simek@amd.com>
Wed, 16 Apr 2025 11:44:44 +0000 (13:44 +0200)
u-boot.itb name is coming via CONFIG_SPL_FS_LOAD_PAYLOAD_NAME and it's
change will affect SD boot mode that's why start to use it.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/0f037e62e2d8486c0f68f204b45705be9e996ba7.1744039048.git.michal.simek@amd.com
arch/arm/dts/zynqmp-binman-som.dts
arch/arm/dts/zynqmp-binman.dts

index d5b63ef..a70123f 100644 (file)
@@ -2,13 +2,19 @@
 /*
  * dts file for Xilinx ZynqMP SOMs (k24/k26)
  *
- * (C) Copyright 2024, Advanced Micro Devices, Inc.
+ * (C) Copyright 2024-2025, Advanced Micro Devices, Inc.
  *
  * Michal Simek <michal.simek@amd.com>
  */
 
 #include <config.h>
 
+#if defined(CONFIG_SPL_FS_LOAD_PAYLOAD_NAME)
+#define U_BOOT_ITB_FILENAME    CONFIG_SPL_FS_LOAD_PAYLOAD_NAME
+#else
+#define U_BOOT_ITB_FILENAME    "u-boot.itb"
+#endif
+
 /dts-v1/;
 / {
        binman: binman {
                        };
                };
 
-               /* u-boot.itb generation in a static way */
+               /* Generation in a static way */
                itb {
-                       filename = "u-boot.itb";
+                       filename = U_BOOT_ITB_FILENAME;
                        pad-byte = <0>;
 
                        fit {
                        };
                        blob-ext@2 {
                                offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
-                               filename = "u-boot.itb";
+                               filename = U_BOOT_ITB_FILENAME;
                        };
                        fdtmap {
                        };
index 252c2ad..59c1388 100644 (file)
@@ -2,22 +2,28 @@
 /*
  * dts file for Xilinx ZynqMP platforms
  *
- * (C) Copyright 2024, Advanced Micro Devices, Inc.
+ * (C) Copyright 2024-2025, Advanced Micro Devices, Inc.
  *
  * Michal Simek <michal.simek@amd.com>
  */
 
 #include <config.h>
 
+#if defined(CONFIG_SPL_FS_LOAD_PAYLOAD_NAME)
+#define U_BOOT_ITB_FILENAME    CONFIG_SPL_FS_LOAD_PAYLOAD_NAME
+#else
+#define U_BOOT_ITB_FILENAME    "u-boot.itb"
+#endif
+
 /dts-v1/;
 / {
        binman: binman {
                multiple-images;
 
 #ifdef CONFIG_SPL
-               /* u-boot.itb generation in a static way */
+               /* Generation in a static way */
                itb {
-                       filename = "u-boot.itb";
+                       filename = U_BOOT_ITB_FILENAME;
                        pad-byte = <0>;
 
                        fit {
                        };
                        blob-ext@2 {
                                offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
-                               filename = "u-boot.itb";
+                               filename = U_BOOT_ITB_FILENAME;
                        };
                        fdtmap {
                        };