diff options
author | Simon Glass <sjg@chromium.org> | 2014-11-15 01:18:31 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-25 13:34:00 (GMT) |
commit | a0bd851ecec0e04c5e3f224a912b2872618f77ba (patch) | |
tree | 338c17291d069a7d11e82ae3a3294498dcc2a559 /arch/x86/include | |
parent | e8a552eb625f0b2d7a778d151af25a17c6d33b7b (diff) | |
download | u-boot-fsl-qoriq-a0bd851ecec0e04c5e3f224a912b2872618f77ba.tar.xz |
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.h | 11 |
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 |