summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2017-02-17 17:26:39 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-02-22 17:40:45 +1100
commite55525541654fb2967ff3a344bec406e8f25e8be (patch)
treebce950a14bffdafef4dcf6ac679a6c54e61fc25d /platforms
parentd1f8f84aa695ef3321b2a53abeda2d46c07ef389 (diff)
downloadblackbird-skiboot-e55525541654fb2967ff3a344bec406e8f25e8be.tar.gz
blackbird-skiboot-e55525541654fb2967ff3a344bec406e8f25e8be.zip
ast: Look for POWER9 LPC in ast_fixup_dt()
Currently ast_fixup_dt() only applies for P8. This enables P9 also. Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r--platforms/astbmc/common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index e78b5fa3..8734f766 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -278,6 +278,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;
OpenPOWER on IntegriCloud