2 * arch/arm/mach-omap1/include/mach/entry-macro.S
4 * Low-level IRQ helper macros for OMAP-based platforms
6 * Copyright (C) 2009 Texas Instruments
8 * This file is licensed under the terms of the GNU General Public
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
13 #include <mach/hardware.h>
15 #include <mach/irqs.h>
17 #include "../../iomap.h"
19 .macro get_irqnr_preamble, base, tmp
22 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
23 ldr \base, =OMAP1_IO_ADDRESS(OMAP_IH1_BASE)
24 ldr \irqnr, [\base, #IRQ_ITR_REG_OFFSET]
25 ldr \tmp, [\base, #IRQ_MIR_REG_OFFSET]
26 mov \irqstat, #0xffffffff
27 bic \tmp, \irqstat, \tmp
31 ldr \irqnr, [\base, #IRQ_SIR_FIQ_REG_OFFSET]
32 ldr \tmp, =omap_irq_flags @ irq flags address
33 ldr \tmp, [\tmp, #0] @ irq flags value
35 ldreq \irqnr, [\base, #IRQ_SIR_IRQ_REG_OFFSET]
37 ldreq \base, =OMAP1_IO_ADDRESS(OMAP_IH2_BASE)
38 ldreq \irqnr, [\base, #IRQ_SIR_IRQ_REG_OFFSET]
39 addeqs \irqnr, \irqnr, #32