11 #define DRV_NAME "SE7722-FPGA"
12 #define pr_fmt(fmt) DRV_NAME ": " fmt
14 #define irq_reg_readl ioread16
15 #define irq_reg_writel iowrite16
23 #include <asm/sizes.h>
26 #define IRQ01_BASE_ADDR 0x11800000
27 #define IRQ01_MODE_REG 0
28 #define IRQ01_STS_REG 4
29 #define IRQ01_MASK_REG 8
31 static void __iomem *se7722_irq_regs;
34 static void se7722_irq_demux(
unsigned int irq,
struct irq_desc *
desc)
51 static void __init se7722_domain_init(
void)
58 printk(
"Failed to get IRQ domain\n");
66 printk(
"Failed to allocate IRQ %d\n", i);
72 static void __init se7722_gc_init(
void)
74 struct irq_chip_generic *
gc;
75 struct irq_chip_type *
ct;
76 unsigned int irq_base;
92 IRQ_GC_INIT_MASK_CACHE,
95 irq_set_chained_handler(
IRQ0_IRQ, se7722_irq_demux);
98 irq_set_chained_handler(
IRQ1_IRQ, se7722_irq_demux);
109 printk(
"Failed to remap IRQ01 regs\n");
120 se7722_domain_init();