Commit 4bd66cfd authored by Colin Cross's avatar Colin Cross Committed by Will Deacon

ARM: tegra: irq: Add tegra_eoi

Implement irq_eoi to allow the GIC irq chip flow controller to
be changed to fasteoi.
Signed-off-by: default avatarColin Cross <ccross@android.com>
parent d1d8c666
...@@ -95,6 +95,14 @@ static void tegra_ack(struct irq_data *d) ...@@ -95,6 +95,14 @@ static void tegra_ack(struct irq_data *d)
tegra_irq_write_mask(d->irq, ICTLR_CPU_IEP_FIR_CLR); tegra_irq_write_mask(d->irq, ICTLR_CPU_IEP_FIR_CLR);
} }
static void tegra_eoi(struct irq_data *d)
{
if (d->irq < FIRST_LEGACY_IRQ)
return;
tegra_irq_write_mask(d->irq, ICTLR_CPU_IEP_FIR_CLR);
}
static int tegra_retrigger(struct irq_data *d) static int tegra_retrigger(struct irq_data *d)
{ {
if (d->irq < FIRST_LEGACY_IRQ) if (d->irq < FIRST_LEGACY_IRQ)
...@@ -116,6 +124,7 @@ void __init tegra_init_irq(void) ...@@ -116,6 +124,7 @@ void __init tegra_init_irq(void)
} }
gic_arch_extn.irq_ack = tegra_ack; gic_arch_extn.irq_ack = tegra_ack;
gic_arch_extn.irq_eoi = tegra_eoi;
gic_arch_extn.irq_mask = tegra_mask; gic_arch_extn.irq_mask = tegra_mask;
gic_arch_extn.irq_unmask = tegra_unmask; gic_arch_extn.irq_unmask = tegra_unmask;
gic_arch_extn.irq_retrigger = tegra_retrigger; gic_arch_extn.irq_retrigger = tegra_retrigger;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment