diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2019-03-06 15:52:27 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-04-22 18:13:23 -0400 |
commit | 35c7527eb9884e2a1c6911cf524639c6e5b91c98 (patch) | |
tree | 66d83ecdd94de89d8ee794ebdb2540de09dc125e /common/image-fit.c | |
parent | c1ef736e3d486b758c4cda36c24d9111c5733bb0 (diff) | |
download | u-boot-35c7527eb9884e2a1c6911cf524639c6e5b91c98.zip u-boot-35c7527eb9884e2a1c6911cf524639c6e5b91c98.tar.gz u-boot-35c7527eb9884e2a1c6911cf524639c6e5b91c98.tar.bz2 |
fit: load all fragments from the extra configurations
Currently only the first fdt is loaded from the extra configuration of
FIT image.
If the configuration have multiple fdt, load them all as well.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r-- | common/image-fit.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/common/image-fit.c b/common/image-fit.c index ac901e1..a74b44f 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -2118,6 +2118,18 @@ int boot_get_fdt_fit(bootm_headers_t *images, ulong addr, if (next_config) *next_config++ = '\0'; uname = NULL; + + /* + * fit_image_load() would load the first FDT from the + * extra config only when uconfig is specified. + * Check if the extra config contains multiple FDTs and + * if so, load them. + */ + cfg_noffset = fit_conf_get_node(fit, uconfig); + + i = 0; + count = fit_conf_get_prop_node_count(fit, cfg_noffset, + FIT_FDT_PROP); } debug("%d: using uname=%s uconfig=%s\n", i, uname, uconfig); |