From 445aca841d273fb085f7f9a53a2c7f51730917ec Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Sun, 3 Dec 2023 09:05:02 -0500 Subject: [PATCH] Update kboot to handle aic3 nodes Signed-off-by: Daniel Berlin --- src/kboot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kboot.c b/src/kboot.c index a0656dc74..7c944a9c9 100644 --- a/src/kboot.c +++ b/src/kboot.c @@ -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"); @@ -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");