diff options
author | Michael Neuling <mikey@neuling.org> | 2017-02-17 17:26:39 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-02-22 17:40:45 +1100 |
commit | e55525541654fb2967ff3a344bec406e8f25e8be (patch) | |
tree | bce950a14bffdafef4dcf6ac679a6c54e61fc25d | |
parent | d1f8f84aa695ef3321b2a53abeda2d46c07ef389 (diff) | |
download | skiboot-e55525541654fb2967ff3a344bec406e8f25e8be.zip skiboot-e55525541654fb2967ff3a344bec406e8f25e8be.tar.gz skiboot-e55525541654fb2967ff3a344bec406e8f25e8be.tar.bz2 |
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>
-rw-r--r-- | platforms/astbmc/common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c index e78b5fa..8734f76 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; |