x86: mpspec: Allow platform to determine how PIRQ is connected to I/O APIC
authorBin Meng <bmeng.cn@gmail.com>
Wed, 22 Jul 2015 08:21:09 +0000 (01:21 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 28 Jul 2015 16:36:24 +0000 (10:36 -0600)
commitabab912813169e9f24e12b9a0a993b0c6060c808
tree7f578d1fe98aca74dee812131ab44156028d0820
parenta2771943415c41b7a730e89e8eba9a43a4fa3fad
x86: mpspec: Allow platform to determine how PIRQ is connected to I/O APIC

Currently during writing MP table I/O interrupt assignment entry, we
assume the PIRQ is directly mapped to I/O APIC INTPIN#16-23, which
however is not always the case on some platforms.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/x86/include/asm/mpspec.h
arch/x86/lib/mpspec.c