]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fpga: Add support for getting external data address and length
authorTien Fong Chee <tien.fong.chee@intel.com>
Tue, 12 Feb 2019 12:41:34 +0000 (20:41 +0800)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 16 Apr 2019 09:51:33 +0000 (11:51 +0200)
This function supports getting both data address and length for
existing FPGA subimage and FPGA external data.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
cmd/fpga.c

index 88a8e3f3186bee795104149d3b885576c4e61f4e..b1f224bc6ad21a1b3e6ce232835e7eca1cabda92 100644 (file)
@@ -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;
                }