Merge branch 'master' of git://git.denx.de/u-boot-mmc
[oweals/u-boot.git] / arch / arm / lib / bootm-fdt.c
index 2c0b56a8f36f480349c5cdaded168c217220c51a..a51755070bc93bad6cb4e05618613afb07c58d9c 100644 (file)
@@ -25,6 +25,7 @@
 
 DECLARE_GLOBAL_DATA_PTR;
 
+#ifdef CONFIG_ARCH_FIXUP_FDT
 int arch_fixup_fdt(void *blob)
 {
        bd_t *bd = gd->bd;
@@ -52,7 +53,7 @@ int arch_fixup_fdt(void *blob)
                return ret;
 #endif
 
-#ifdef CONFIG_ARMV7_NONSEC
+#if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV8_PSCI)
        ret = psci_update_dt(blob);
        if (ret)
                return ret;
@@ -60,3 +61,4 @@ int arch_fixup_fdt(void *blob)
 
        return 0;
 }
+#endif