]> git.sur5r.net Git - u-boot/commit
SPL: FIT: factor out spl_load_fit_image()
authorAndre Przywara <andre.przywara@arm.com>
Wed, 26 Apr 2017 00:32:36 +0000 (01:32 +0100)
committerJagan Teki <jagan@openedev.com>
Wed, 17 May 2017 17:45:25 +0000 (23:15 +0530)
commit8baa381882e8b5e8684b331f09b04e2e2784fb0d
treeadac233fbac8fdaaab6733108b15005bf772b747
parent5c8c8faccf0e660040ada1a9376b74a6807d4f5f
SPL: FIT: factor out spl_load_fit_image()

At the moment we load two images from a FIT image: the actual U-Boot
image and the .dtb file. Both times we have very similar code, that deals
with alignment requirements the media we load from imposes upon us.
Factor out this code into a new function, which we just call twice.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Jagan Teki <jagan@openedev.com>
common/spl/spl_fit.c