]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
fpga: xilinx: pass compatible flags to xilinx_load()
authorOleksandr Suvorov <oleksandr.suvorov@foundries.io>
Fri, 22 Jul 2022 14:16:06 +0000 (17:16 +0300)
committerMichal Simek <michal.simek@amd.com>
Tue, 26 Jul 2022 07:34:21 +0000 (09:34 +0200)
This flag is used to check whether a Xilinx FPGA driver is able to
load a particular FPGA bitstream image.

Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
Tested-by: Ricardo Salveti <ricardo@foundries.io>
Tested-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com>
Link: https://lore.kernel.org/r/20220722141614.297383-6-oleksandr.suvorov@foundries.io
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/fpga/fpga.c
drivers/fpga/xilinx.c
include/xilinx.h

index 3b0a44b2420050cb2716e865b54d367a53280810..efbac9f0c47192b1486c517296089392c71eccd6 100644 (file)
@@ -263,7 +263,7 @@ int fpga_load(int devnum, const void *buf, size_t bsize, bitstream_type bstype)
                case fpga_xilinx:
 #if defined(CONFIG_FPGA_XILINX)
                        ret_val = xilinx_load(desc->devdesc, buf, bsize,
-                                             bstype);
+                                             bstype, 0);
 #else
                        fpga_no_sup((char *)__func__, "Xilinx devices");
 #endif
index 6bc1bc491fbea4a17ca816e26410d1ce5fdfc235..5dd721575ec6fdacefe8484807904b3473adb214 100644 (file)
@@ -139,7 +139,7 @@ int fpga_loadbitstream(int devnum, char *fpgadata, size_t size,
 }
 
 int xilinx_load(xilinx_desc *desc, const void *buf, size_t bsize,
-               bitstream_type bstype)
+               bitstream_type bstype, int flags)
 {
        if (!xilinx_validate (desc, (char *)__FUNCTION__)) {
                printf ("%s: Invalid device descriptor\n", __FUNCTION__);
index ff5486d98a72b541d4213980186b3e43f754862a..0bbf14d8a1da50affb88d027afb434e6cabd01b2 100644 (file)
@@ -68,7 +68,7 @@ struct xilinx_fpga_op {
 /* Generic Xilinx Functions
  *********************************************************************/
 int xilinx_load(xilinx_desc *desc, const void *image, size_t size,
-               bitstream_type bstype);
+               bitstream_type bstype, int flags);
 int xilinx_dump(xilinx_desc *desc, const void *buf, size_t bsize);
 int xilinx_info(xilinx_desc *desc);
 int xilinx_loadfs(xilinx_desc *desc, const void *buf, size_t bsize,