Linux Audio

Check our new training course

Loading...
v4.6
 
 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 *
 6 * Copyright (C) 2014 Broadcom Corporation
 7 * Author: Kevin Cernekee <cernekee@gmail.com>
 8 */
 9
10#include <linux/of.h>
11#include <linux/irqchip.h>
12
13#include <asm/bmips.h>
14#include <asm/irq.h>
15#include <asm/irq_cpu.h>
16#include <asm/time.h>
17
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
24unsigned int get_c0_compare_int(void)
25{
26	return CP0_LEGACY_COMPARE_IRQ;
27}
28
29void __init arch_init_irq(void)
30{
31	struct device_node *dn;
32
33	/* Only these controllers support SMP IRQ affinity */
34	dn = of_find_matching_node(NULL, smp_intc_dt_match);
35	if (dn)
36		of_node_put(dn);
37	else
38		bmips_tp1_irqs = 0;
39
40	irqchip_init();
41}
42
43IRQCHIP_DECLARE(mips_cpu_intc, "mti,cpu-interrupt-controller",
44	     mips_cpu_irq_of_init);
v6.13.7
 1// SPDX-License-Identifier: GPL-2.0-only
 2/*
 
 
 
 3 *
 4 * Copyright (C) 2014 Broadcom Corporation
 5 * Author: Kevin Cernekee <cernekee@gmail.com>
 6 */
 7
 8#include <linux/of.h>
 9#include <linux/irqchip.h>
10
11#include <asm/bmips.h>
12#include <asm/irq.h>
13#include <asm/irq_cpu.h>
14#include <asm/time.h>
15
16static const struct of_device_id smp_intc_dt_match[] = {
17	{ .compatible = "brcm,bcm7038-l1-intc" },
18	{ .compatible = "brcm,bcm6345-l1-intc" },
19	{}
20};
21
22unsigned int get_c0_compare_int(void)
23{
24	return CP0_LEGACY_COMPARE_IRQ;
25}
26
27void __init arch_init_irq(void)
28{
29	struct device_node *dn;
30
31	/* Only these controllers support SMP IRQ affinity */
32	dn = of_find_matching_node(NULL, smp_intc_dt_match);
33	if (dn)
34		of_node_put(dn);
35	else
36		bmips_tp1_irqs = 0;
37
38	irqchip_init();
39}
40
41IRQCHIP_DECLARE(mips_cpu_intc, "mti,cpu-interrupt-controller",
42	     mips_cpu_irq_of_init);