1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2014 Broadcom Corporation
5 * Author: Kevin Cernekee <cernekee@gmail.com>
9 #include <linux/irqchip.h>
11 #include <asm/bmips.h>
13 #include <asm/irq_cpu.h>
16 static const struct of_device_id smp_intc_dt_match
[] = {
17 { .compatible
= "brcm,bcm7038-l1-intc" },
18 { .compatible
= "brcm,bcm6345-l1-intc" },
22 unsigned int get_c0_compare_int(void)
24 return CP0_LEGACY_COMPARE_IRQ
;
27 void __init
arch_init_irq(void)
29 struct device_node
*dn
;
31 /* Only these controllers support SMP IRQ affinity */
32 dn
= of_find_matching_node(NULL
, smp_intc_dt_match
);
41 IRQCHIP_DECLARE(mips_cpu_intc
, "mti,cpu-interrupt-controller",
42 mips_cpu_irq_of_init
);