]> 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 0b0d6a76fcc72bfcb2197369fdf985db6b390126..9408e33203a1bb62ab4cfdefeebf8bcc379c87a4 100644 (file)
@@ -88,8 +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,