diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2011-02-22 15:07:44 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-23 16:27:54 -0500 |
commit | bcc7c1244fcfd852b9f4590935491057e1cab9dd (patch) | |
tree | 4b68fc51466e8b42f343d6f26db0f1200d595c50 /arch/x86/kernel/irqinit.c | |
parent | 9079b35364e75ce6b968a179f861d2f819f33e61 (diff) |
x86: ioapic: Add OF bindings for IO_APIC
ioapic_xlate provides a translation from the information in device tree
to ioapic related informations. This includes
- obtaining hw irq which is the vector number "=> pin number + gsi"
- obtaining type (level/edge/..)
- programming this information into ioapic
ioapic_add_ofnode adds an irq_domain based on informations from the device
tree. This information (irq_domain) is required in order to map a device to
its proper interrupt controller.
[ tglx: Adapted to the io_apic changes, which let us move that whole code
to devicetree.c ]
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Dirk Brandewie <dirk.brandewie@gmail.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: sodaville@linutronix.de
Cc: devicetree-discuss@lists.ozlabs.org
LKML-Reference: <1298405266-1624-10-git-send-email-bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel/irqinit.c')
-rw-r--r-- | arch/x86/kernel/irqinit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/irqinit.c b/arch/x86/kernel/irqinit.c index 4cadf8688dbd..9f76f89f43a4 100644 --- a/arch/x86/kernel/irqinit.c +++ b/arch/x86/kernel/irqinit.c | |||
@@ -119,6 +119,12 @@ void __init init_IRQ(void) | |||
119 | int i; | 119 | int i; |
120 | 120 | ||
121 | /* | 121 | /* |
122 | * We probably need a better place for this, but it works for | ||
123 | * now ... | ||
124 | */ | ||
125 | x86_add_irq_domains(); | ||
126 | |||
127 | /* | ||
122 | * On cpu 0, Assign IRQ0_VECTOR..IRQ15_VECTOR's to IRQ 0..15. | 128 | * On cpu 0, Assign IRQ0_VECTOR..IRQ15_VECTOR's to IRQ 0..15. |
123 | * If these IRQ's are handled by legacy interrupt-controllers like PIC, | 129 | * If these IRQ's are handled by legacy interrupt-controllers like PIC, |
124 | * then this configuration will likely be static after the boot. If | 130 | * then this configuration will likely be static after the boot. If |