Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313412
b: refs/heads/master
c: f3e16cc
h: refs/heads/master
v: v3
  • Loading branch information
Ben Dooks authored and Arnd Bergmann committed Jul 10, 2012
1 parent fff7ca4 commit c0a877f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75f41273ec558d4ffc22c2dbf7637d42f167cf25
refs/heads/master: f3e16ccd03fab2f8440609bd44feb882b5fdd31d
9 changes: 6 additions & 3 deletions trunk/arch/arm/mach-mvebu/irq-armada-370-xp.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@
#define ARMADA_370_XP_INT_SET_MASK_OFFS (0x48)
#define ARMADA_370_XP_INT_CLEAR_MASK_OFFS (0x4C)

#define ARMADA_370_XP_INT_CONTROL (0x00)
#define ARMADA_370_XP_INT_SET_ENABLE_OFFS (0x30)
#define ARMADA_370_XP_INT_CLEAR_ENABLE_OFFS (0x34)

#define ARMADA_370_XP_CPU_INTACK_OFFS (0x44)

#define ARMADA_370_XP_NR_IRQS (115)

static void __iomem *per_cpu_int_base;
static void __iomem *main_int_base;
static struct irq_domain *armada_370_xp_mpic_domain;
Expand Down Expand Up @@ -81,14 +80,18 @@ static struct irq_domain_ops armada_370_xp_mpic_irq_ops = {
static int __init armada_370_xp_mpic_of_init(struct device_node *node,
struct device_node *parent)
{
u32 control;

main_int_base = of_iomap(node, 0);
per_cpu_int_base = of_iomap(node, 1);

BUG_ON(!main_int_base);
BUG_ON(!per_cpu_int_base);

control = readl(main_int_base + ARMADA_370_XP_INT_CONTROL);

armada_370_xp_mpic_domain =
irq_domain_add_linear(node, ARMADA_370_XP_NR_IRQS,
irq_domain_add_linear(node, (control >> 2) & 0x3ff,
&armada_370_xp_mpic_irq_ops, NULL);

if (!armada_370_xp_mpic_domain)
Expand Down

0 comments on commit c0a877f

Please sign in to comment.