Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fpga: Add flag to indicate bitstream needs decompression

Add a flag that is passed to the write_init() callback, indicating
that the bitstream is compressed.

The low-level driver will deal with the flag, or return an error,
if compressed bitstreams are not supported.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Alan Tull <atull@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Anatolij Gustschin and committed by
Greg Kroah-Hartman
b37fa560 5a4bfbd5

+2
+2
include/linux/fpga/fpga-mgr.h
··· 68 68 * FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported 69 69 * FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting 70 70 * FPGA_MGR_BITSTREAM_LSB_FIRST: SPI bitstream bit order is LSB first 71 + * FPGA_MGR_COMPRESSED_BITSTREAM: FPGA bitstream is compressed 71 72 */ 72 73 #define FPGA_MGR_PARTIAL_RECONFIG BIT(0) 73 74 #define FPGA_MGR_EXTERNAL_CONFIG BIT(1) 74 75 #define FPGA_MGR_ENCRYPTED_BITSTREAM BIT(2) 75 76 #define FPGA_MGR_BITSTREAM_LSB_FIRST BIT(3) 77 + #define FPGA_MGR_COMPRESSED_BITSTREAM BIT(4) 76 78 77 79 /** 78 80 * struct fpga_image_info - information specific to a FPGA image