aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/lpc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/lpc.c b/hw/lpc.c
index 5f37ba6..32cb7b1 100644
--- a/hw/lpc.c
+++ b/hw/lpc.c
@@ -816,8 +816,9 @@ static void lpc_init_chip_p8(struct dt_node *xn)
chip->id, chip->lpc_xbase);
lpc_init_interrupts(chip);
- if (chip->type == PROC_CHIP_P8_NAPLES)
- dt_add_property(xn, "interrupt-controller", NULL, 0);
+ dt_add_property(xn, "interrupt-controller", NULL, 0);
+ dt_add_property_cells(xn, "#interrupt-cells", 1);
+ assert(dt_prop_get_u32(xn, "#address-cells") == 2);
}
static void lpc_init_chip_p9(struct dt_node *opb_node)