Skip to content

Commit b37fa56

Browse files
vdsaogregkh
authored andcommitted
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>
1 parent 5a4bfbd commit b37fa56

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/linux/fpga/fpga-mgr.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,13 @@ enum fpga_mgr_states {
6868
* FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported
6969
* FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting
7070
* FPGA_MGR_BITSTREAM_LSB_FIRST: SPI bitstream bit order is LSB first
71+
* FPGA_MGR_COMPRESSED_BITSTREAM: FPGA bitstream is compressed
7172
*/
7273
#define FPGA_MGR_PARTIAL_RECONFIG BIT(0)
7374
#define FPGA_MGR_EXTERNAL_CONFIG BIT(1)
7475
#define FPGA_MGR_ENCRYPTED_BITSTREAM BIT(2)
7576
#define FPGA_MGR_BITSTREAM_LSB_FIRST BIT(3)
77+
#define FPGA_MGR_COMPRESSED_BITSTREAM BIT(4)
7678

7779
/**
7880
* struct fpga_image_info - information specific to a FPGA image

0 commit comments

Comments
 (0)