From: Tien Fong Chee Date: Tue, 12 Feb 2019 12:41:34 +0000 (+0800) Subject: fpga: Add support for getting external data address and length X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=9184c92f46da7a0cd53a806046e56911b61c90e2;p=u-boot.git fpga: Add support for getting external data address and length This function supports getting both data address and length for existing FPGA subimage and FPGA external data. Signed-off-by: Tien Fong Chee Signed-off-by: Michal Simek --- diff --git a/cmd/fpga.c b/cmd/fpga.c index 88a8e3f318..b1f224bc6a 100644 --- a/cmd/fpga.c +++ b/cmd/fpga.c @@ -343,9 +343,9 @@ static int do_fpga_loadmk(cmd_tbl_t *cmdtp, int flag, int argc, return CMD_RET_FAILURE; } - /* get fpga subimage data address and length */ - if (fit_image_get_data(fit_hdr, noffset, &fit_data, - &data_size)) { + /* get fpga subimage/external data address and length */ + if (fit_image_get_data_and_size(fit_hdr, noffset, + &fit_data, &data_size)) { puts("Fpga subimage data not found\n"); return CMD_RET_FAILURE; }