]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/lib/bootm-fdt.c
libfdt: replace ARCH_FIXUP_FDT with ARCH_FIXUP_FDT_MEMORY
[u-boot] / arch / arm / lib / bootm-fdt.c
index 0eb10a86874371936bbfaf6ca2cb74523c32c616..4481f9e2fa9ceb26f2f54f21e67f6b825c016601 100644 (file)
 
 #include <common.h>
 #include <fdt_support.h>
+#ifdef CONFIG_ARMV7_NONSEC
 #include <asm/armv7.h>
+#endif
 #include <asm/psci.h>
+#include <asm/spin_table.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -40,11 +43,20 @@ int arch_fixup_fdt(void *blob)
        }
 
        ret = fdt_fixup_memory_banks(blob, start, size, CONFIG_NR_DRAM_BANKS);
-#ifdef CONFIG_ARMV7_NONSEC
        if (ret)
                return ret;
 
+#ifdef CONFIG_ARMV8_SPIN_TABLE
+       ret = spin_table_update_dt(blob);
+       if (ret)
+               return ret;
+#endif
+
+#if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV8_PSCI)
        ret = psci_update_dt(blob);
+       if (ret)
+               return ret;
 #endif
-       return ret;
+
+       return 0;
 }