]> Git Repo - J-u-boot.git/commit
spl: fit: don't load the firmware twice
authorJean-Jacques Hiblot <[email protected]>
Tue, 22 Oct 2019 14:39:10 +0000 (16:39 +0200)
committerTom Rini <[email protected]>
Tue, 7 Jan 2020 16:12:47 +0000 (11:12 -0500)
commit6b8b98d54d8e74c8b4c6cfe431e88c90efcea72d
tree8af385460d373efdec7d87cbb98bfbcf05c95f73
parente3cd06be93e7e669a93d5786d131f421f346a925
spl: fit: don't load the firmware twice

When u-boot.img is a FIT image generated automatically by mkimage, the
configuration node has the following structure:
conf-1 {
   description = "k3-am654-base-board";
   firmware = "firmware-1";
   loadables = "firmware-1";
   fdt = "fdt-1";
};

The firmware is referenced twice. Once by the 'firmware' property and
once by the 'loadables' property. Currently this result in the firmware
being loaded twice. This is not a big problem but has an impact on the
boot time.
Fixing it by not loading a loadable image if it is also the firmware image.

Signed-off-by: Jean-Jacques Hiblot <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Tested-by: Andreas Dannenberg <[email protected]>
common/spl/spl_fit.c
This page took 0.030238 seconds and 4 git commands to generate.