]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: PSCI: Enable the PSCI node
authorStephen Warren <swarren@nvidia.com>
Fri, 22 Jun 2018 19:03:18 +0000 (13:03 -0600)
committerTom Warren <twarren@nvidia.com>
Thu, 26 Jul 2018 20:15:30 +0000 (13:15 -0700)
When fixing up the DT to report PSCI support, explicitly enable the node.
DTs may ship with the node disabled in case a PSCI implementation is not
present, and expect any PSCI implementation to enable the node if they are
actually present.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/lib/psci-dt.c

index 348df893b7ae74345d62ee63b6a471917a37e75f..246f3c7cb84a1a0ef57ec0e956099c45f223b0f5 100644 (file)
@@ -116,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;
 }