Skip to content

Commit

Permalink
ast: Look for POWER9 LPC in ast_fixup_dt()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mikey authored and stewartsmith committed Feb 22, 2017
1 parent d1f8f84 commit e555255
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions platforms/astbmc/common.c
Expand Up @@ -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;
Expand Down

0 comments on commit e555255

Please sign in to comment.