]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: binman: Fix compilation error
authorMayuresh Chitale <mchitale@ventanamicro.com>
Wed, 11 Oct 2023 15:30:20 +0000 (21:00 +0530)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 19 Oct 2023 09:29:32 +0000 (17:29 +0800)
commit5a348ccf025702fc6bb30d9c8da367a9e78d3d2b
treed0b255ce791e26f0afc8f16b975dcea28467ad32
parente96e537efd95f77903c4503c67667543d7b88965
riscv: binman: Fix compilation error

Some platforms may not have any DDR memory below 4G and for such platforms
the TEXT_BASE and LOAD addresses etc are all 64 bit addresses due to
which the u-boot build fails with below error:

u-boot/arch/riscv/dts/binman.dtsi:30.14-25
Value out of range for 32-bit array element
u-boot/arch/riscv/dts/binman.dtsi:43.14-25
Value out of range for 32-bit array element
u-boot/arch/riscv/dts/binman.dtsi:44.15-26
Value out of range for 32-bit array element
FATAL ERROR: Syntax error parsing input tree

Fix by setting the address-cells property to 2 and converting load
addresses to 64 bit values.

Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/riscv/dts/binman.dtsi