efi_selftest: allow building on ARMv7-M
[oweals/u-boot.git] / arch / arm / lib / psci-dt.c
index 8272e2db9f87925e98853b0fcc17e8e3b81dbdd3..246f3c7cb84a1a0ef57ec0e956099c45f223b0f5 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright 2016 NXP Semiconductor, Inc.
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <common.h>
@@ -68,6 +67,8 @@ init_psci_node:
        psci_ver = sec_firmware_support_psci_version();
 #elif defined(CONFIG_ARMV7_PSCI_1_0) || defined(CONFIG_ARMV8_PSCI)
        psci_ver = ARM_PSCI_VER_1_0;
+#elif defined(CONFIG_ARMV7_PSCI_0_2)
+       psci_ver = ARM_PSCI_VER_0_2;
 #endif
        if (psci_ver >= ARM_PSCI_VER_1_0) {
                tmp = fdt_setprop_string(fdt, nodeoff,
@@ -115,6 +116,10 @@ init_psci_node:
        if (tmp)
                return tmp;
 
+       tmp = fdt_setprop_string(fdt, nodeoff, "status", "okay");
+       if (tmp)
+               return tmp;
+
 #endif
        return 0;
 }