Skip to content

Commit

Permalink
Update kboot to handle aic3 nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Berlin <[email protected]>
  • Loading branch information
dberlin committed Dec 3, 2023
1 parent 79d9b2c commit 445aca8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/kboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ static int dt_set_cpus(void)
int aic = fdt_node_offset_by_compatible(dt, -1, "apple,aic");
if (aic == -FDT_ERR_NOTFOUND)
aic = fdt_node_offset_by_compatible(dt, -1, "apple,aic2");
if (aic == -FDT_ERR_NOTFOUND)
aic = fdt_node_offset_by_compatible(dt, -1, "apple,aic3");
if (aic < 0)
bail_cleanup("FDT: Failed to find AIC node\n");

Expand Down Expand Up @@ -2141,6 +2143,8 @@ static int dt_transfer_virtios(void)
int aic = fdt_node_offset_by_compatible(dt, -1, "apple,aic");
if (aic == -FDT_ERR_NOTFOUND)
aic = fdt_node_offset_by_compatible(dt, -1, "apple,aic2");
if (aic == -FDT_ERR_NOTFOUND)
aic = fdt_node_offset_by_compatible(dt, -1, "apple,aic3");
if (aic < 0)
bail("FDT: failed to find AIC node\n");

Expand Down

0 comments on commit 445aca8

Please sign in to comment.