[ARM] tegra: Combine tegra_fiq_select with enable/disable

Change-Id: Iba3dc43e1a95993a6278eea008c7a8610ed0cd4c
Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
Colin Cross
2010-10-04 18:22:56 -07:00
parent 0142744b9a
commit 08c6385bf9
2 changed files with 2 additions and 12 deletions

View File

@@ -39,15 +39,12 @@ void tegra_fiq_enable(int irq)
val &= ~8; /* pass FIQs through */
val |= 2; /* enableNS */
writel(val, base + GIC_CPU_CTRL);
tegra_legacy_select_fiq(irq, true);
tegra_legacy_unmask_irq(irq);
}
void tegra_fiq_disable(int irq)
{
tegra_legacy_mask_irq(irq);
}
void tegra_fiq_select(int irq, int on)
{
tegra_legacy_select_fiq(irq, !!on);
tegra_legacy_select_fiq(irq, false);
}

View File

@@ -18,15 +18,8 @@
#ifndef __ASM_ARCH_TEGRA_FIQ_H
#define __ASM_ARCH_TEGRA_FIQ_H
/* change an interrupt to be an FIQ instead of an IRQ */
void tegra_fiq_select(int n, int on);
/* enable/disable an interrupt that is an FIQ (safe from FIQ context?) */
void tegra_fiq_enable(int n);
void tegra_fiq_disable(int n);
/* install an FIQ handler */
int tegra_fiq_set_handler(void (*func)(void *data, void *regs, void *svc_sp),
void *data);
#endif