U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: zynqmp: Use CONFIG_SPL_FS_LOAD_PAYLOAD_NAME in binman
@ 2025-03-19 13:08 Michal Simek
  2025-03-25  9:48 ` Quentin Schulz
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Simek @ 2025-03-19 13:08 UTC (permalink / raw)
  To: u-boot, git; +Cc: Prasad Kummari, Tom Rini

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>
---

 arch/arm/dts/zynqmp-binman-som.dts | 11 ++++++-----
 arch/arm/dts/zynqmp-binman.dts     |  8 ++++----
 2 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/arch/arm/dts/zynqmp-binman-som.dts b/arch/arm/dts/zynqmp-binman-som.dts
index d5b63ef604ba..26a5a634a9c8 100644
--- a/arch/arm/dts/zynqmp-binman-som.dts
+++ b/arch/arm/dts/zynqmp-binman-som.dts
@@ -14,7 +14,7 @@
 	binman: binman {
 		multiple-images;
 
-#ifdef CONFIG_SPL
+#if defined(CONFIG_SPL)
 		fit-dtb.blob {
 			filename = "fit-dtb.blob";
 			pad-byte = <0>;
@@ -102,10 +102,10 @@
 				};
 			};
 		};
-
-		/* u-boot.itb generation in a static way */
+#if defined(CONFIG_SPL_FS_LOAD_PAYLOAD_NAME)
+		/* Generation in a static way */
 		itb {
-			filename = "u-boot.itb";
+			filename = CONFIG_SPL_FS_LOAD_PAYLOAD_NAME;
 			pad-byte = <0>;
 
 			fit {
@@ -227,12 +227,13 @@
 			};
 			blob-ext@2 {
 				offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
-				filename = "u-boot.itb";
+				filename = CONFIG_SPL_FS_LOAD_PAYLOAD_NAME;
 			};
 			fdtmap {
 			};
 		};
 #endif
+#endif
 #endif
 	};
 };
diff --git a/arch/arm/dts/zynqmp-binman.dts b/arch/arm/dts/zynqmp-binman.dts
index 252c2ad552b0..d2ccd9d32ec6 100644
--- a/arch/arm/dts/zynqmp-binman.dts
+++ b/arch/arm/dts/zynqmp-binman.dts
@@ -14,10 +14,10 @@
 	binman: binman {
 		multiple-images;
 
-#ifdef CONFIG_SPL
-		/* u-boot.itb generation in a static way */
+#if defined(CONFIG_SPL) && defined(CONFIG_SPL_FS_LOAD_PAYLOAD_NAME)
+		/* Generation in a static way */
 		itb {
-			filename = "u-boot.itb";
+			filename = CONFIG_SPL_FS_LOAD_PAYLOAD_NAME;
 			pad-byte = <0>;
 
 			fit {
@@ -196,7 +196,7 @@
 			};
 			blob-ext@2 {
 				offset = <CONFIG_SYS_SPI_U_BOOT_OFFS>;
-				filename = "u-boot.itb";
+				filename = CONFIG_SPL_FS_LOAD_PAYLOAD_NAME;
 			};
 			fdtmap {
 			};
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-03-28 15:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-19 13:08 [PATCH] arm64: zynqmp: Use CONFIG_SPL_FS_LOAD_PAYLOAD_NAME in binman Michal Simek
2025-03-25  9:48 ` Quentin Schulz
2025-03-27  9:11   ` Michal Simek
2025-03-28 15:08     ` Quentin Schulz
2025-03-28 15:19       ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox