Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235221
b: refs/heads/master
c: 26d902c
h: refs/heads/master
i:
  235219: f49ad1b
v: v3
  • Loading branch information
Colin Cross committed Feb 10, 2011
1 parent 39dcd82 commit c19018d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 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: 3524b70ef3336a4f1351a489e83894b88106ab7c
refs/heads/master: 26d902c0c6d6254f471663305d48b63f027ddb0c
17 changes: 16 additions & 1 deletion trunk/arch/arm/mach-tegra/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ static u32 tegra_lp0_wake_level_any;

static void (*tegra_gic_mask_irq)(struct irq_data *d);
static void (*tegra_gic_unmask_irq)(struct irq_data *d);
static void (*tegra_gic_ack_irq)(struct irq_data *d);

/* ensures that sufficient time is passed for a register write to
* serialize into the 32KHz domain */
Expand Down Expand Up @@ -112,10 +113,24 @@ static void tegra_unmask(struct irq_data *d)
tegra_legacy_unmask_irq(d->irq);
}

static void tegra_ack(struct irq_data *d)
{
tegra_legacy_force_irq_clr(d->irq);
tegra_gic_ack_irq(d);
}

static int tegra_retrigger(struct irq_data *d)
{
tegra_legacy_force_irq_set(d->irq);
return 1;
}

static struct irq_chip tegra_irq = {
.name = "PPI",
.irq_ack = tegra_ack,
.irq_mask = tegra_mask,
.irq_unmask = tegra_unmask,
.irq_retrigger = tegra_retrigger,
};

void __init tegra_init_irq(void)
Expand All @@ -132,7 +147,7 @@ void __init tegra_init_irq(void)
gic = get_irq_chip(29);
tegra_gic_unmask_irq = gic->irq_unmask;
tegra_gic_mask_irq = gic->irq_mask;
tegra_irq.irq_ack = gic->irq_ack;
tegra_gic_ack_irq = gic->irq_ack;
#ifdef CONFIG_SMP
tegra_irq.irq_set_affinity = gic->irq_set_affinity;
#endif
Expand Down

0 comments on commit c19018d

Please sign in to comment.