x86: Support platform PIRQ routing
authorBin Meng <bmeng.cn@gmail.com>
Fri, 24 Apr 2015 10:10:05 +0000 (18:10 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 30 Apr 2015 00:51:49 +0000 (18:51 -0600)
commitb5b6b0196017da0c2b4d483a2cd59be7810c1d7a
tree99b3f12b2f5f5f207fbec089a184562847cc990e
parent5e2400e8f873a1b7ee840554e4157c5f7900a863
x86: Support platform PIRQ routing

On x86 boards, platform chipset receives up to four different
interrupt signals from PCI devices (INTA/B/C/D), which in turn
will be routed to chipset internal PIRQ lines then routed to
8259 PIC finally if configuring the whole system to work under
the so-called PIC mode (in contrast to symmetric IO mode which
uses IOAPIC).

We add two major APIs to aid this, one for routing PIRQ and the
other one for generating a PIRQ routing table.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/Kconfig
arch/x86/include/asm/pirq_routing.h [new file with mode: 0644]
arch/x86/lib/Makefile
arch/x86/lib/pirq_routing.c [new file with mode: 0644]