[U-Boot] [PATCH 3/4] ARM: PSCI: Enable the PSCI node

Stephen Warren swarren at wwwdotorg.org
Fri Jun 22 19:03:18 UTC 2018


From: Stephen Warren <swarren at nvidia.com>

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 at nvidia.com>
---
 arch/arm/lib/psci-dt.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/lib/psci-dt.c b/arch/arm/lib/psci-dt.c
index 348df893b7ae..246f3c7cb84a 100644
--- a/arch/arm/lib/psci-dt.c
+++ b/arch/arm/lib/psci-dt.c
@@ -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;
 }
-- 
2.17.1



More information about the U-Boot mailing list