MXC: use variable for irq controller base in entry-macro.S
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 25 May 2009 08:50:52 +0000 (10:50 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 14 Aug 2009 10:40:39 +0000 (12:40 +0200)
This allows us to determine the irq controller base address
on runtime.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/include/mach/entry-macro.S
arch/arm/plat-mxc/irq.c

index 5f01d60da8457920e2db1208f6c249f5ef826412..7cf290efe768ad9823bd7ced43585d0b6f57a3b3 100644 (file)
@@ -18,7 +18,8 @@
        .endm
 
        .macro  get_irqnr_preamble, base, tmp
-       ldr     \base, =AVIC_IO_ADDRESS(AVIC_BASE_ADDR)
+       ldr     \base, =avic_base
+       ldr     \base, [\base]
 #ifdef CONFIG_MXC_IRQ_PRIOR
        ldr     r4, [\base, #AVIC_NIMASK]
 #endif
index 618a8b24ed1266cd727fc05924de37454b43adb8..778ddfe57d895c5db1a4969886bd1dac6226f5f0 100644 (file)
@@ -44,7 +44,7 @@
 #define AVIC_FIPNDH            0x60    /* fast int pending high */
 #define AVIC_FIPNDL            0x64    /* fast int pending low */
 
-static void __iomem *avic_base;
+void __iomem *avic_base;
 
 int imx_irq_set_priority(unsigned char irq, unsigned char prio)
 {