blob: c81ab6e5cf26488fb92a06e870856af19c03e6e0 [file] [log] [blame]
Greg Ungerer33a21262009-04-30 16:22:24 +10001/*
2 * intc.c
3 *
4 * (C) Copyright 2009, Greg Ungerer <gerg@snapgear.com>
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file COPYING in the main directory of this archive
8 * for more details.
9 */
10
11#include <linux/types.h>
12#include <linux/init.h>
13#include <linux/kernel.h>
14#include <linux/interrupt.h>
15#include <linux/irq.h>
16#include <linux/io.h>
17#include <asm/traps.h>
18#include <asm/coldfire.h>
19#include <asm/mcfsim.h>
20
21static void intc_irq_mask(unsigned int irq)
22{
23}
24
25static void intc_irq_unmask(unsigned int irq)
26{
27}
28
29static int intc_irq_set_type(unsigned int irq, unsigned int type)
30{
31 return 0;
32}
33
34static struct irq_chip intc_irq_chip = {
35 .name = "CF-INTC",
36 .mask = intc_irq_mask,
37 .unmask = intc_irq_unmask,
38 .set_type = intc_irq_set_type,
39};
40
41void __init init_IRQ(void)
42{
43 int irq;
44
45 init_vectors();
46
47 for (irq = 0; (irq < NR_IRQS); irq++) {
48 irq_desc[irq].status = IRQ_DISABLED;
49 irq_desc[irq].action = NULL;
50 irq_desc[irq].depth = 1;
51 irq_desc[irq].chip = &intc_irq_chip;
52 intc_irq_set_type(irq, 0);
53 }
54}
55