diff --git a/core/drivers/gic.c b/core/drivers/gic.c index 9d8f54465e5..dc64e007bdb 100644 --- a/core/drivers/gic.c +++ b/core/drivers/gic.c @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -196,10 +197,10 @@ static int gic_dt_get_irq(const uint32_t *properties, int count, uint32_t *type, it_num = fdt32_to_cpu(properties[1]); switch (fdt32_to_cpu(properties[0])) { - case 1: + case GIC_PPI: it_num += 16; break; - case 0: + case GIC_SPI: it_num += 32; break; default: