提交 12b8eb86 编写于 作者: S Sascha Hauer

MXC: use variable for irq controller base in entry-macro.S

This allows us to determine the irq controller base address
on runtime.
Signed-off-by: NSascha Hauer <s.hauer@pengutronix.de>
上级 c372a5cf
......@@ -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
......
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册