Skip to content

Commit

Permalink
ARM: CSR: IRQ: add simple irq_domain so that hw irq can map to Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Barry Song <Baohua.Song@csr.com>
  • Loading branch information
Barry Song authored and Barry Song committed Sep 11, 2011
1 parent c915bed commit 858ba70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/arm/mach-prima2/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <asm/mach/irq.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/irqdomain.h>

#define SIRFSOC_INT_RISC_MASK0 0x0018
#define SIRFSOC_INT_RISC_MASK1 0x001C
Expand Down Expand Up @@ -66,6 +67,8 @@ void __init sirfsoc_of_irq_init(void)
if (!sirfsoc_intc_base)
panic("unable to map intc cpu registers\n");

irq_domain_add_simple(np, 0);

of_node_put(np);

sirfsoc_irq_init();
Expand Down

0 comments on commit 858ba70

Please sign in to comment.