Searched refs:sun4i_irq_base (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/irqchip/
H A Dirq-sun4i.c35 static void __iomem *sun4i_irq_base; variable
47 writel(BIT(0), sun4i_irq_base + SUN4I_IRQ_PENDING_REG(0)); sun4i_irq_ack()
57 val = readl(sun4i_irq_base + SUN4I_IRQ_ENABLE_REG(reg)); sun4i_irq_mask()
59 sun4i_irq_base + SUN4I_IRQ_ENABLE_REG(reg)); sun4i_irq_mask()
69 val = readl(sun4i_irq_base + SUN4I_IRQ_ENABLE_REG(reg)); sun4i_irq_unmask()
71 sun4i_irq_base + SUN4I_IRQ_ENABLE_REG(reg)); sun4i_irq_unmask()
99 sun4i_irq_base = of_iomap(node, 0); sun4i_of_init()
100 if (!sun4i_irq_base) sun4i_of_init()
105 writel(0, sun4i_irq_base + SUN4I_IRQ_ENABLE_REG(0)); sun4i_of_init()
106 writel(0, sun4i_irq_base + SUN4I_IRQ_ENABLE_REG(1)); sun4i_of_init()
107 writel(0, sun4i_irq_base + SUN4I_IRQ_ENABLE_REG(2)); sun4i_of_init()
110 writel(0, sun4i_irq_base + SUN4I_IRQ_MASK_REG(0)); sun4i_of_init()
111 writel(0, sun4i_irq_base + SUN4I_IRQ_MASK_REG(1)); sun4i_of_init()
112 writel(0, sun4i_irq_base + SUN4I_IRQ_MASK_REG(2)); sun4i_of_init()
115 writel(0xffffffff, sun4i_irq_base + SUN4I_IRQ_PENDING_REG(0)); sun4i_of_init()
116 writel(0xffffffff, sun4i_irq_base + SUN4I_IRQ_PENDING_REG(1)); sun4i_of_init()
117 writel(0xffffffff, sun4i_irq_base + SUN4I_IRQ_PENDING_REG(2)); sun4i_of_init()
120 writel(0x01, sun4i_irq_base + SUN4I_IRQ_PROTECTION_REG); sun4i_of_init()
123 writel(0x00, sun4i_irq_base + SUN4I_IRQ_NMI_CTRL_REG); sun4i_of_init()
150 hwirq = readl(sun4i_irq_base + SUN4I_IRQ_VECTOR_REG) >> 2; sun4i_handle_irq()
152 !(readl(sun4i_irq_base + SUN4I_IRQ_PENDING_REG(0)) & BIT(0))) sun4i_handle_irq()
157 hwirq = readl(sun4i_irq_base + SUN4I_IRQ_VECTOR_REG) >> 2; sun4i_handle_irq()

Completed in 28 milliseconds