rockchip: make_fit_atf: use correct fdt_x references in config nodes
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Fri, 17 Jan 2020 20:26:04 +0000 (21:26 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 19 Feb 2020 08:45:38 +0000 (16:45 +0800)
commitdfa64707da22d816c8e43141f7aaaf3a3078cd06
tree9619abe104c8e79e9ec276f8fd03598febdd6283
parentf2a73d6867ef973fbb8471cc87058205999b5e5c
rockchip: make_fit_atf: use correct fdt_x references in config nodes

The script iterates over the given devicetrees and creates both
fdt_x node as well as a conf-node for each passed dt.

But there is a slight bug in that it always references fdt_1 in each
conf node instead of the matching fdt_x as expected.

So fix that by referencing the number of the current dt similar to
how the fdt_x nodes gets created.

Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/make_fit_atf.py