From: Lokesh Vutla Date: Wed, 6 Mar 2019 20:09:00 +0530 Subject: [U-Boot] [PATCH] fit: load all fragments from the extra configurations In-Reply-To: <20190306135227.7471-1-peter.ujfalusi@ti.com> References: <20190306135227.7471-1-peter.ujfalusi@ti.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/03/19 7:22 PM, Peter Ujfalusi wrote: > 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 > --- > common/image-fit.c | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/common/image-fit.c b/common/image-fit.c > index ac901e131ca1..a74b44f2982c 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); This is a nice extension to the extra configs. Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh