]> git.baikalelectronics.ru Git - uboot.git/commit
rockchip: spl-boot-order: do not attempt to access fdt if OF_PLATDATA
authorUrja Rannikko <urjaman@gmail.com>
Wed, 13 May 2020 19:15:22 +0000 (19:15 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 22 May 2020 12:53:20 +0000 (20:53 +0800)
commit0bc7ac54fde6e5ff8bfcf3155f8285e3a1affe93
tree976423df87b6fcf39da6f5019396884ab7f8c643
parent10470312a9b7c86ca7f40131fae1d1a101499202
rockchip: spl-boot-order: do not attempt to access fdt if OF_PLATDATA

gd->fdt_blob is null if using OF_PLATDATA in SPL, which causes a hang
after 87361ea251 ("fdt: Sync up to the latest libfdt").
We use the same test that is used in spl_common_init on whether to call
fdtdec_setup to unconditionally avoid linking in the fdt-using code
when not necessary and thus reduce SPL size.

Signed-off-by: Urja Rannikko <urjaman@gmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/spl-boot-order.c