On Armada8k boards various peripherals (e.g. USB) have interrupt lines connected to on of the ICU interrupt controllers.
After an interrupt is detected it triggers MSI to a given address, with a programmed value. This in turn triggers an SPI interrupt.
Normally MSI vector should be allocated by ICUs parent and set during interrupt allocation.
Instead of doing that we relied on the ICU being pre-configured in firmware.
This worked with EDK2 and older versions of u-boot, but in the newer ones that is no longer the case.
Extend ICU msi-parents - GICP and SEI to support MSI interface and use it during interrupt allocation.
This allows us to boot on armada 7k/8k SoCs that run modern uboot.
For SATA interrupts we need to apply a WA previously done in firmware.
We have two SATA ports connected to one controller.
Each ports gets its own interrupt, but only one of them is described in dts, also ahci_generic driver expects only one irq too.
Fix it by mapping both interrupts to the same MSI when one of them is allocated, which allows us to use both SATA ports.