aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2017-06-14 11:36:34 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-17 11:26:14 -0400
commitb37fa56069ce61d97a77dadca8dd65e522db3387 (patch)
treeb0c50062b46caaf33cb3ae8655b7d9fd62156009
parent5a4bfbd544f2c6153b8fd7210da4e5e9d9899098 (diff)
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>
-rw-r--r--include/linux/fpga/fpga-mgr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h
index 01c348ca38b7..bfa14bc023fb 100644
--- a/include/linux/fpga/fpga-mgr.h
+++ b/include/linux/fpga/fpga-mgr.h
@@ -68,11 +68,13 @@ enum fpga_mgr_states {
68 * FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported 68 * FPGA_MGR_PARTIAL_RECONFIG: do partial reconfiguration if supported
69 * FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting 69 * FPGA_MGR_EXTERNAL_CONFIG: FPGA has been configured prior to Linux booting
70 * FPGA_MGR_BITSTREAM_LSB_FIRST: SPI bitstream bit order is LSB first 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#define FPGA_MGR_PARTIAL_RECONFIG BIT(0) 73#define FPGA_MGR_PARTIAL_RECONFIG BIT(0)
73#define FPGA_MGR_EXTERNAL_CONFIG BIT(1) 74#define FPGA_MGR_EXTERNAL_CONFIG BIT(1)
74#define FPGA_MGR_ENCRYPTED_BITSTREAM BIT(2) 75#define FPGA_MGR_ENCRYPTED_BITSTREAM BIT(2)
75#define FPGA_MGR_BITSTREAM_LSB_FIRST BIT(3) 76#define FPGA_MGR_BITSTREAM_LSB_FIRST BIT(3)
77#define FPGA_MGR_COMPRESSED_BITSTREAM BIT(4)
76 78
77/** 79/**
78 * struct fpga_image_info - information specific to a FPGA image 80 * struct fpga_image_info - information specific to a FPGA image