xen/device-tree: Add ability to handle nodes with interrupts-extended prop
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Tue, 21 May 2019 17:37:34 +0000 (20:37 +0300)
committerJulien Grall <julien.grall@arm.com>
Mon, 10 Jun 2019 19:40:38 +0000 (20:40 +0100)
commit2e9f5f726285deee96d7d9f89ce5680a0101111a
treec721584b5aff5e91df543ea9205b29e1c649de4d
parent4cfc40799ab998056103c15ffe3bb9fc777c26f8
xen/device-tree: Add ability to handle nodes with interrupts-extended prop

The "interrupts-extended" property is a special form for use when
a node needs to reference multiple interrupt parents.

According to:
Linux/Documentation/devicetree/bindings/interrupt-controller/interrupts.txt

But, there are cases when "interrupts-extended" property is used for
"outside /soc node" with a single interrupt parent as an equivalent of
pairs ("interrupt-parent" + "interrupts").

A good example here is ARCH timer node for R-Car Gen3/Gen2 family,
which is mandatory device for Xen usage on ARM. And without ability
to handle such nodes, Xen fails to operate.

So, this patch adds required support for Xen to be able to handle
nodes with that property.

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/common/device_tree.c