summaryrefslogtreecommitdiff
path: root/arch/x86/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-14 18:18:31 -0700
committerSimon Glass <sjg@chromium.org>2014-11-25 06:34:00 -0700
commita0bd851ecec0e04c5e3f224a912b2872618f77ba (patch)
tree338c17291d069a7d11e82ae3a3294498dcc2a559 /arch/x86/include
parente8a552eb625f0b2d7a778d151af25a17c6d33b7b (diff)
downloadu-boot-imx-a0bd851ecec0e04c5e3f224a912b2872618f77ba.zip
u-boot-imx-a0bd851ecec0e04c5e3f224a912b2872618f77ba.tar.gz
u-boot-imx-a0bd851ecec0e04c5e3f224a912b2872618f77ba.tar.bz2
x86: Set up edge triggering on interrupt 9
Add this additional init in case it is needed by the OS. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/interrupt.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/include/asm/interrupt.h b/arch/x86/include/asm/interrupt.h
index 3f46e09..25abde7 100644
--- a/arch/x86/include/asm/interrupt.h
+++ b/arch/x86/include/asm/interrupt.h
@@ -27,4 +27,15 @@ void specific_eoi(int irq);
extern char exception_stack[];
+/**
+ * configure_irq_trigger() - Configure IRQ triggering
+ *
+ * Switch the given interrupt to be level / edge triggered
+ *
+ * @param int_num legacy interrupt number (3-7, 9-15)
+ * @param is_level_triggered true for level triggered interrupt, false for
+ * edge triggered interrupt
+ */
+void configure_irq_trigger(int int_num, bool is_level_triggered);
+
#endif