diff mbox series

[1/2] arm: dts: soc64: Add U-boot script in FIT Image

Message ID 20221121160100.15986-1-jit.loon.lim@intel.com
State Needs Review / ACK, archived
Delegated to: Marek Vasut
Headers show
Series [1/2] arm: dts: soc64: Add U-boot script in FIT Image | expand

Commit Message

Jit Loon Lim Nov. 21, 2022, 4 p.m. UTC
From: Yau Wai Gan <yau.wai.gan@intel.com>

HSD #1509829545-1: Build u-boot script in FIT image format to align with binman usage.

Signed-off-by: Yau Wai Gan <yau.wai.gan@intel.com>
Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com>
---
 arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi b/arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi
index 84b91e8df0..d72855ea47 100644
--- a/arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi
+++ b/arch/arm/dts/socfpga_soc64_fit-u-boot.dtsi
@@ -14,6 +14,29 @@ 
 };
 
 &binman {
+	u-boot-script {
+		filename = "u-boot.scr";
+		fit {
+			description = "FIT image for u-boot script";
+			#address-cells = <1>;
+
+			images {
+				script {
+					description = "U-Boot script";
+					type = "script";
+					compression = "none";
+					data: blob-ext {
+						filename = "u-boot.txt";
+					};
+
+					hash {
+						algo = "crc32";
+					};
+				};
+			};
+		};
+	};
+
 	u-boot {
 		filename = "u-boot.itb";
 		fit {