[PATCH 2/5] dts: imx8mm-uboot: Add support to pack FlexSPI Header using binman

Mamta Shukla mamta.shukla at leica-geosystems.com
Thu Jun 2 16:47:04 CEST 2022


Add definition for FSPI configuration block and subsequently new offsets for
u-boot-spl and u-boot-itb for CONFIG_FSPI_HEADER option.

Signed-off-by: Mamta Shukla <mamta.shukla at leica-geosystems.com>
Signed-off-by: Thomas Haemmerle <thomas.haemmerle at leica-geosystems.com>
---
 arch/arm/dts/imx8mm-u-boot.dtsi | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

diff --git a/arch/arm/dts/imx8mm-u-boot.dtsi b/arch/arm/dts/imx8mm-u-boot.dtsi
index 9f66cdb65a..178f974f70 100644
--- a/arch/arm/dts/imx8mm-u-boot.dtsi
+++ b/arch/arm/dts/imx8mm-u-boot.dtsi
@@ -150,7 +150,26 @@
 		filename = "flash.bin";
 		pad-byte = <0x00>;
 
-		spl {
+#ifdef CONFIG_FSPI_CONF_HEADER
+        fspi_conf_block {
+            filename = CONFIG_FSPI_CONF_FILE;
+            type = "blob-ext";
+            size = <0x1000>;
+        };
+
+        spl {
+            filename = "spl.bin";
+            offset = <0x1000>;
+            type = "blob-ext";
+        };
+
+        binman_uboot: uboot {
+            filename = "u-boot.itb";
+            offset = <0x58C00>;
+            type = "blob-ext";
+        };
+#else
+        spl {
 			filename = "spl.bin";
 			offset = <0x0>;
 			type = "blob-ext";
@@ -161,6 +180,7 @@
 			offset = <0x57c00>;
 			type = "blob-ext";
 		};
+#endif
 	};
 };
 
-- 
2.25.1



More information about the U-Boot mailing list