rockchip: board: treat 'u-boot,dm-spl' as 'u-boot,dm-pre-reloc'

It works when CONFIG_USING_KERNEL_DTB is enabled, because we can
set either 'u-boot,dm-spl' or 'u-boot,dm-pre-reloc' for the node
that we can to leave in the u-boot.dtb.

Change-Id: I682e3900b9bf479f998304737031525004538724
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-10-24 09:01:28 +08:00
parent 930ceb12e0
commit 2a5ad8b355
1 changed files with 2 additions and 1 deletions

View File

@ -231,7 +231,8 @@ static int phandles_fixup(void *fdt)
list_for_each_entry(dev, &uc->dev_head, uclass_node) { list_for_each_entry(dev, &uc->dev_head, uclass_node) {
/* Only U-Boot node go further */ /* Only U-Boot node go further */
if (!dev_read_bool(dev, "u-boot,dm-pre-reloc")) if (!dev_read_bool(dev, "u-boot,dm-pre-reloc") ||
!dev_read_bool(dev, "u-boot,dm-spl"))
continue; continue;
for (i = 0; i < ARRAY_SIZE(props); i++) { for (i = 0; i < ARRAY_SIZE(props); i++) {