dts: imx8mm-uboot: Add support to pack FlexSPI Header using binman
authorMamta Shukla <mamta.shukla@leica-geosystems.com>
Tue, 12 Jul 2022 14:36:18 +0000 (14:36 +0000)
committerStefano Babic <sbabic@denx.de>
Mon, 25 Jul 2022 13:35:34 +0000 (15:35 +0200)
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@leica-geosystems.com>
Signed-off-by: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com>
Tested-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
arch/arm/dts/imx8mm-u-boot.dtsi

index 9f66cdb..6936343 100644 (file)
                filename = "flash.bin";
                pad-byte = <0x00>;
 
+#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>;
                        offset = <0x57c00>;
                        type = "blob-ext";
                };
+#endif
        };
 };