20 #include <linux/device.h>
22 #include <linux/kernel.h>
23 #include <linux/module.h>
26 #include <mach/hardware.h>
46 static struct resource netx_rtc_resources[] = {
57 .num_resources =
ARRAY_SIZE(netx_rtc_resources),
58 .resource = netx_rtc_resources,
66 #define DEBUG_IRQ(fmt...) printk(fmt)
68 #define DEBUG_IRQ(fmt...) while (0) {}
72 netx_hif_demux_handler(
unsigned int irq_unused,
struct irq_desc *
desc)
101 val |= (1 << 26) << irq;
105 val &= ~((1 << 26) << irq);
109 val &= ~((1 << 26) << irq);
113 val |= (1 << 26) << irq;
122 netx_hif_ack_irq(
struct irq_data *d)
124 unsigned int val, irq;
130 val &= ~((1 << 24) << irq);
137 netx_hif_mask_irq(
struct irq_data *d)
139 unsigned int val, irq;
143 val &= ~((1 << 24) << irq);
149 netx_hif_unmask_irq(
struct irq_data *d)
151 unsigned int val, irq;
155 val |= (1 << 24) << irq;
160 static struct irq_chip netx_hif_chip = {
161 .irq_ack = netx_hif_ack_irq,
162 .irq_mask = netx_hif_mask_irq,
163 .irq_unmask = netx_hif_unmask_irq,
164 .irq_set_type = netx_hif_irq_type,
174 irq_set_chip_and_handler(irq, &netx_hif_chip,
180 irq_set_chained_handler(
NETX_IRQ_HIF, netx_hif_demux_handler);
183 static int __init netx_init(
void)