]> git.dujemihanovic.xyz Git - u-boot.git/commit
mach-snapdragon: refactor board_fdt_blob_setup()
authorCaleb Connolly <caleb.connolly@linaro.org>
Thu, 8 Aug 2024 23:59:24 +0000 (01:59 +0200)
committerCaleb Connolly <caleb.connolly@linaro.org>
Fri, 6 Sep 2024 08:47:45 +0000 (10:47 +0200)
commit82efffc38f8f834393ab06375d4e8bd38dec024a
tree93a44b0dc87ee6f716d4e90640b82eaec0ae84f2
parentcbaf53fdf12534be50075fdd84105c682955424f
mach-snapdragon: refactor board_fdt_blob_setup()

If U-Boot has a DTB built in (appended to the image directly) then this
was likely intentional, we should prioritise it over one provided by ABL
(if there was one).

Make this behaviour explicit, and panic if no valid DTB could be found
anywhere. Returning an error is not useful in this case as U-Boot would
just crash later in a more confusing way.

Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
arch/arm/mach-snapdragon/board.c