mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user