diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-05-02 14:09:30 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-05-20 15:23:46 +0200 |
commit | 7a78bd2679ce3287cfc44f69fd7bc554d0261cf6 (patch) | |
tree | 34a48a2e9594920abe2d4c68386869a7f9506744 /include/xilinx.h | |
parent | 64e809afeaf1572c3246a5bca198a77d0498fd89 (diff) | |
download | u-boot-imx-7a78bd2679ce3287cfc44f69fd7bc554d0261cf6.zip u-boot-imx-7a78bd2679ce3287cfc44f69fd7bc554d0261cf6.tar.gz u-boot-imx-7a78bd2679ce3287cfc44f69fd7bc554d0261cf6.tar.bz2 |
fpga: Define bitstream type based on command selection
Clean up partial, full and compressed bitstream handling.
U-Boot supports full bitstream loading and partial
based on detection which is not 100% correct.
Extending fpga_load/fpga_loadbitstream() with one more
argument which stores bitstream type.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/xilinx.h')
-rw-r--r-- | include/xilinx.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/xilinx.h b/include/xilinx.h index 9801267..7d83ba2 100644 --- a/include/xilinx.h +++ b/include/xilinx.h @@ -45,14 +45,15 @@ typedef struct { /* typedef xilinx_desc */ } xilinx_desc; /* end, typedef xilinx_desc */ struct xilinx_fpga_op { - int (*load)(xilinx_desc *, const void *, size_t); + int (*load)(xilinx_desc *, const void *, size_t, bitstream_type); int (*dump)(xilinx_desc *, const void *, size_t); int (*info)(xilinx_desc *); }; /* Generic Xilinx Functions *********************************************************************/ -int xilinx_load(xilinx_desc *desc, const void *image, size_t size); +int xilinx_load(xilinx_desc *desc, const void *image, size_t size, + bitstream_type bstype); int xilinx_dump(xilinx_desc *desc, const void *buf, size_t bsize); int xilinx_info(xilinx_desc *desc); |