diff options
author | Anatolij Gustschin <agust@denx.de> | 2017-06-14 11:36:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-07-17 11:26:14 -0400 |
commit | b37fa56069ce61d97a77dadca8dd65e522db3387 (patch) | |
tree | b0c50062b46caaf33cb3ae8655b7d9fd62156009 /include/linux/fpga | |
parent | 5a4bfbd544f2c6153b8fd7210da4e5e9d9899098 (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>
Diffstat (limited to 'include/linux/fpga')
-rw-r--r-- | include/linux/fpga/fpga-mgr.h | 2 |
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 |