Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355526
b: refs/heads/master
c: 485863b
h: refs/heads/master
v: v3
  • Loading branch information
Shawn Guo committed Jan 30, 2013
1 parent 7a8a06d commit bcb14c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eea8e326ff476e418b99b6daa97f9bd85ac6c523
refs/heads/master: 485863b8fa02d515e48ce6b59f01d62172d2fe0d
5 changes: 5 additions & 0 deletions trunk/arch/arm/mach-imx/gpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,16 @@ static void imx_gpc_irq_mask(struct irq_data *d)
void __init imx_gpc_init(void)
{
struct device_node *np;
int i;

np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-gpc");
gpc_base = of_iomap(np, 0);
WARN_ON(!gpc_base);

/* Initially mask all interrupts */
for (i = 0; i < IMR_NUM; i++)
writel_relaxed(~0, gpc_base + GPC_IMR1 + i * 4);

/* Register GPC as the secondary interrupt controller behind GIC */
gic_arch_extn.irq_mask = imx_gpc_irq_mask;
gic_arch_extn.irq_unmask = imx_gpc_irq_unmask;
Expand Down

0 comments on commit bcb14c3

Please sign in to comment.