Merge branch 'x86/urgent' into x86/cpu, to pick up dependency
[deliverable/linux.git] / arch / mips / bmips / irq.c
CommitLineData
d666cd02
KC
1/*
2 * This program is free software; you can redistribute it and/or modify it
3 * under the terms of the GNU General Public License version 2 as published
4 * by the Free Software Foundation.
5 *
e5a6fcc0
KC
6 * Copyright (C) 2014 Broadcom Corporation
7 * Author: Kevin Cernekee <cernekee@gmail.com>
d666cd02
KC
8 */
9
e5a6fcc0
KC
10#include <linux/of.h>
11#include <linux/irqchip.h>
d666cd02
KC
12
13#include <asm/bmips.h>
e5a6fcc0 14#include <asm/irq.h>
d666cd02 15#include <asm/irq_cpu.h>
e5a6fcc0 16#include <asm/time.h>
d666cd02 17
c7c42ec2
SA
18static const struct of_device_id smp_intc_dt_match[] = {
19 { .compatible = "brcm,bcm7038-l1-intc" },
20 { .compatible = "brcm,bcm6345-l1-intc" },
21 {}
22};
23
d666cd02
KC
24unsigned int get_c0_compare_int(void)
25{
26 return CP0_LEGACY_COMPARE_IRQ;
27}
28
e5a6fcc0 29void __init arch_init_irq(void)
d666cd02 30{
e5a6fcc0 31 struct device_node *dn;
d666cd02 32
c7c42ec2
SA
33 /* Only these controllers support SMP IRQ affinity */
34 dn = of_find_matching_node(NULL, smp_intc_dt_match);
e5a6fcc0
KC
35 if (dn)
36 of_node_put(dn);
37 else
38 bmips_tp1_irqs = 0;
d666cd02 39
e5a6fcc0 40 irqchip_init();
d666cd02
KC
41}
42
0a271c2a 43IRQCHIP_DECLARE(mips_cpu_intc, "mti,cpu-interrupt-controller",
e5a6fcc0 44 mips_cpu_irq_of_init);
This page took 0.116783 seconds and 5 git commands to generate.