arm64/xen: Add missing #address-cells and #size-cells properties
authorJulien Grall <julien.grall@linaro.org>
Wed, 29 Nov 2017 17:08:12 +0000 (17:08 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 6 Dec 2017 12:02:34 +0000 (13:02 +0100)
commitd34977cb662d9d3c74532dc175103758c47f552f
tree4658c80ecbf87c957527f0e38b85ce8f5dc1059a
parent5033080eb6cb784a3d7f36b3d66b71f4603bf0aa
arm64/xen: Add missing #address-cells and #size-cells properties

The properties #address-cells and #size-cells are used to know the
number of cells for ranges provided by "regs". If they don't exist, the
value are resp. 2 and 1.

Currently, when multiboot nodes are created it is assumed that #address-cells
and #size-cells are exactly 2. However, they are never set by GRUB and
will result to later failure when the device-tree is generated by GRUB
or contain different values.

To prevent this failure, create the both properties in the chosen nodes.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/arm64/xen_boot.c