From e55525541654fb2967ff3a344bec406e8f25e8be Mon Sep 17 00:00:00 2001 From: Michael Neuling Date: Fri, 17 Feb 2017 17:26:39 +1100 Subject: 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 Signed-off-by: Stewart Smith --- platforms/astbmc/common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'platforms') 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; -- cgit v1.1