Platforms/ARM: Juno: Update _PRT to provide interrupt type
Platforms/ARM: Juno: Update _PRT to provide interrupt type

The PCI Routing Table (_PRT) for Juno does not specify the Interrupt
trigger type and polarity. In the absence of this information, the
kernel uses PCI default interrupt type (level triggered, active low)
which is incompatible with GICv2 compliant interrupt controller such
as on Juno.

Absence of interrupt type leads to errors such as following in kernel
boot log -

[ 1.353696] genirq: Setting trigger mode 8 for irq 9 failed (gic_set_type+0x0/0x5c)
[ 1.478286] genirq: Setting trigger mode 8 for irq 17 failed (gic_set_type+0x0/0x5c)
[ 1.563723] genirq: Setting trigger mode 8 for irq 18 failed (gic_set_type+0x0/0x5c)

Fix this issue by providing the correct information (level triggered,
active high) to the kernel by using the PCI Link device.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Punit Agrawal <93fe5f620cf5f235dea09f543baa20a9b3210b07@arm.com>
Reviewed-by: Graeme Gregory <82d5c9ab2d7ef3dda58a149911e5e6813d81bd4e@linaro.org>
Reviewed-by: Leif Lindholm <a613079f0455438b29e28a9c5b9eb3779a81a33a@linaro.org>

hisilicon/OpenPlatformPkg,jlinton/OpenPlatformPkg,hisilicon/OpenPlatformPkg,jlinton/OpenPlatformPkg