x86: ioapic: Add OF bindings for IO_APIC
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 22 Feb 2011 20:07:44 +0000 (21:07 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 23 Feb 2011 21:27:54 +0000 (22:27 +0100)
commitbcc7c1244fcfd852b9f4590935491057e1cab9dd
tree4b68fc51466e8b42f343d6f26db0f1200d595c50
parent9079b35364e75ce6b968a179f861d2f819f33e61
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>
arch/x86/include/asm/prom.h
arch/x86/kernel/devicetree.c
arch/x86/kernel/irqinit.c