Skip to content

Commit

Permalink
MXC: use variable for irq controller base in entry-macro.S
Browse files Browse the repository at this point in the history
This allows us to determine the irq controller base address
on runtime.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Sascha Hauer committed Aug 14, 2009
1 parent c372a5c commit 12b8eb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion arch/arm/plat-mxc/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-mxc/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 12b8eb8

Please sign in to comment.