2 * include/asm-arm/arch-footbridge/entry-macro.S
4 * Low-level IRQ helper macros for footbridge-based platforms
6 * This file is licensed under the terms of the GNU General Public
7 * License version 2. This program is licensed "as is" without any
8 * warranty of any kind, whether express or implied.
10 #include <asm/hardware.h>
11 #include <asm/arch/irqs.h>
12 #include <asm/hardware/dec21285.h>
17 .equ dc21285_high, ARMCSR_BASE & 0xff000000
18 .equ dc21285_low, ARMCSR_BASE & 0x00ffffff
20 .macro get_irqnr_and_base, irqnr, irqstat, base, tmp
23 orr r4, r4, #dc21285_low
25 ldr \irqstat, [r4, #0x180] @ get interrupts
27 mov \irqnr, #IRQ_SDRAMPARITY
28 tst \irqstat, #IRQ_MASK_SDRAMPARITY
31 tst \irqstat, #IRQ_MASK_UART_RX
32 movne \irqnr, #IRQ_CONRX
35 tst \irqstat, #IRQ_MASK_DMA1
36 movne \irqnr, #IRQ_DMA1
39 tst \irqstat, #IRQ_MASK_DMA2
40 movne \irqnr, #IRQ_DMA2
43 tst \irqstat, #IRQ_MASK_IN0
44 movne \irqnr, #IRQ_IN0
47 tst \irqstat, #IRQ_MASK_IN1
48 movne \irqnr, #IRQ_IN1
51 tst \irqstat, #IRQ_MASK_IN2
52 movne \irqnr, #IRQ_IN2
55 tst \irqstat, #IRQ_MASK_IN3
56 movne \irqnr, #IRQ_IN3
59 tst \irqstat, #IRQ_MASK_PCI
60 movne \irqnr, #IRQ_PCI
63 tst \irqstat, #IRQ_MASK_DOORBELLHOST
64 movne \irqnr, #IRQ_DOORBELLHOST
67 tst \irqstat, #IRQ_MASK_I2OINPOST
68 movne \irqnr, #IRQ_I2OINPOST
71 tst \irqstat, #IRQ_MASK_TIMER1
72 movne \irqnr, #IRQ_TIMER1
75 tst \irqstat, #IRQ_MASK_TIMER2
76 movne \irqnr, #IRQ_TIMER2
79 tst \irqstat, #IRQ_MASK_TIMER3
80 movne \irqnr, #IRQ_TIMER3
83 tst \irqstat, #IRQ_MASK_UART_TX
84 movne \irqnr, #IRQ_CONTX
87 tst \irqstat, #IRQ_MASK_PCI_ABORT
88 movne \irqnr, #IRQ_PCI_ABORT
91 tst \irqstat, #IRQ_MASK_PCI_SERR
92 movne \irqnr, #IRQ_PCI_SERR
95 tst \irqstat, #IRQ_MASK_DISCARD_TIMER
96 movne \irqnr, #IRQ_DISCARD_TIMER
99 tst \irqstat, #IRQ_MASK_PCI_DPERR
100 movne \irqnr, #IRQ_PCI_DPERR
103 tst \irqstat, #IRQ_MASK_PCI_PERR
104 movne \irqnr, #IRQ_PCI_PERR