Browse Source

ARM: CSR: IRQ: add simple irq_domain so that hw irq can map to Linux

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Barry Song 13 năm trước cách đây
mục cha
commit
858ba703e8
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      arch/arm/mach-prima2/irq.c

+ 3 - 0
arch/arm/mach-prima2/irq.c

@@ -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
@@ -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();