diff options
author | Barry Song <Baohua.Song@csr.com> | 2011-09-05 01:15:18 -0400 |
---|---|---|
committer | Barry Song <21cnbao@gmail.com> | 2011-09-10 21:15:09 -0400 |
commit | 858ba703e842f4ece6680b45862ee9e6e6297d1e (patch) | |
tree | 96aed2d13b369190523ba04f1aed0a8c88f7353e /arch/arm/mach-prima2 | |
parent | c915bedf221ad4f017710865fc963b1e0dda1390 (diff) |
ARM: CSR: IRQ: add simple irq_domain so that hw irq can map to Linux
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Diffstat (limited to 'arch/arm/mach-prima2')
-rw-r--r-- | arch/arm/mach-prima2/irq.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-prima2/irq.c b/arch/arm/mach-prima2/irq.c index 7af254d046ba..cf80a72c0a09 100644 --- a/arch/arm/mach-prima2/irq.c +++ b/arch/arm/mach-prima2/irq.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <asm/mach/irq.h> | 13 | #include <asm/mach/irq.h> |
14 | #include <linux/of.h> | 14 | #include <linux/of.h> |
15 | #include <linux/of_address.h> | 15 | #include <linux/of_address.h> |
16 | #include <linux/irqdomain.h> | ||
16 | 17 | ||
17 | #define SIRFSOC_INT_RISC_MASK0 0x0018 | 18 | #define SIRFSOC_INT_RISC_MASK0 0x0018 |
18 | #define SIRFSOC_INT_RISC_MASK1 0x001C | 19 | #define SIRFSOC_INT_RISC_MASK1 0x001C |
@@ -66,6 +67,8 @@ void __init sirfsoc_of_irq_init(void) | |||
66 | if (!sirfsoc_intc_base) | 67 | if (!sirfsoc_intc_base) |
67 | panic("unable to map intc cpu registers\n"); | 68 | panic("unable to map intc cpu registers\n"); |
68 | 69 | ||
70 | irq_domain_add_simple(np, 0); | ||
71 | |||
69 | of_node_put(np); | 72 | of_node_put(np); |
70 | 73 | ||
71 | sirfsoc_irq_init(); | 74 | sirfsoc_irq_init(); |