]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/arm/cpu/armv7/virt-dt.c
ARM: PSCI: Rework the DT handler slightly
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / virt-dt.c
index ad19e4c47c2e9947358c1cbcbcd24a5370e94436..9408e33203a1bb62ab4cfdefeebf8bcc379c87a4 100644 (file)
@@ -88,10 +88,12 @@ static int fdt_psci(void *fdt)
        return 0;
 }
 
-int armv7_update_dt(void *fdt)
+int psci_update_dt(void *fdt)
 {
+#if defined(CONFIG_ARMV7_NONSEC) || defined(CONFIG_ARMV7_VIRT)
        if (!armv7_boot_nonsec())
                return 0;
+#endif
 #ifndef CONFIG_ARMV7_SECURE_BASE
        /* secure code lives in RAM, keep it alive */
        fdt_add_mem_rsv(fdt, (unsigned long)__secure_start,