[Skiboot] [PATCH 1/2] ast: Look for POWER9 LPC in ast_fixup_dt()
Michael Neuling
mikey at neuling.org
Fri Feb 17 17:26:39 AEDT 2017
Currently ast_fixup_dt() only applies for P8. This enables P9 also.
Signed-off-by: Michael Neuling <mikey at neuling.org>
---
platforms/astbmc/common.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index 6ba6b77630..2dcf40bc9c 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -313,6 +313,12 @@ static void astbmc_fixup_dt(void)
if (dt_has_node_property(n, "#address-cells", NULL))
break;
}
+ dt_for_each_compatible(dt_root, n, "ibm,power9-lpc") {
+ if (!primary_lpc || dt_has_node_property(n, "primary", NULL))
+ primary_lpc = n;
+ if (dt_has_node_property(n, "#address-cells", NULL))
+ break;
+ }
if (!primary_lpc)
return;
--
2.9.3
More information about the Skiboot
mailing list