arm: dts: imx8m: Require ATF BL31 blob only if not PSCI provider
authorMarek Vasut <marex@denx.de>
Thu, 22 Dec 2022 00:46:37 +0000 (01:46 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 31 Jan 2023 14:46:39 +0000 (15:46 +0100)
In case U-Boot itself if the PSCI provider on i.MX8M, do not
require the ATF BL31 blob, as at that point the blob is useless
and would interfere with U-Boot operation.

Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/dts/imx8mm-u-boot.dtsi
arch/arm/dts/imx8mn-u-boot.dtsi
arch/arm/dts/imx8mp-u-boot.dtsi
arch/arm/dts/imx8mq-u-boot.dtsi

index 60d49bc..25dc8e1 100644 (file)
@@ -99,6 +99,7 @@
                                        };
                                };
 
+#ifndef CONFIG_ARMV8_PSCI
                                atf {
                                        arch = "arm64";
                                        compression = "none";
                                                type = "atf-bl31";
                                        };
                                };
+#endif
 
                                binman_fip: fip {
                                        arch = "arm64";
                                        description = "NAME";
                                        fdt = "fdt-SEQ";
                                        firmware = "uboot";
+#ifndef CONFIG_ARMV8_PSCI
                                        loadables = "atf";
+#endif
                                };
                        };
                };
index ec53390..d55dddb 100644 (file)
                                        };
                                };
 
+#ifndef CONFIG_ARMV8_PSCI
                                atf {
                                        arch = "arm64";
                                        compression = "none";
                                                type = "atf-bl31";
                                        };
                                };
+#endif
 
                                binman_fip: fip {
                                        arch = "arm64";
                                        description = "NAME";
                                        fdt = "fdt-SEQ";
                                        firmware = "uboot";
+#ifndef CONFIG_ARMV8_PSCI
                                        loadables = "atf";
+#endif
                                };
                        };
                };
index cb9b5b6..07538da 100644 (file)
                                        };
                                };
 
+#ifndef CONFIG_ARMV8_PSCI
                                atf {
                                        description = "ARM Trusted Firmware";
                                        type = "firmware";
                                                type = "atf-bl31";
                                        };
                                };
+#endif
 
                                @fdt-SEQ {
                                        description = "NAME";
                                        description = "NAME";
                                        fdt = "fdt-SEQ";
                                        firmware = "uboot";
+#ifndef CONFIG_ARMV8_PSCI
                                        loadables = "atf";
+#endif
                                };
                        };
                };
index 8d385e8..2bc9f41 100644 (file)
                                        };
                                };
 
+#ifndef CONFIG_ARMV8_PSCI
                                atf {
                                        arch = "arm64";
                                        compression = "none";
                                                type = "blob-ext";
                                        };
                                };
+#endif
 
                                fdt {
                                        compression = "none";
                                        description = "NAME";
                                        fdt = "fdt";
                                        firmware = "uboot";
+#ifndef CONFIG_ARMV8_PSCI
                                        loadables = "atf";
+#endif
                                };
                        };
                };