mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
fpga: region: use image info as parameter for programming region
Use FPGA image info (region->info) when region code is programming the FPGA to pass in multiple parameters. This is a baby step in refactoring the FPGA region code to separate out common FPGA region code from FPGA region Device Tree overlay support. Signed-off-by: Alan Tull <atull@kernel.org> Acked-by: Moritz Fischer <mdf@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ed81f5fc3c
commit
61c3210239
2 changed files with 13 additions and 7 deletions
|
@ -89,6 +89,7 @@ enum fpga_mgr_states {
|
|||
* @buf: contiguous buffer containing FPGA image
|
||||
* @count: size of buf
|
||||
* @dev: device that owns this
|
||||
* @overlay: Device Tree overlay
|
||||
*/
|
||||
struct fpga_image_info {
|
||||
u32 flags;
|
||||
|
@ -100,6 +101,9 @@ struct fpga_image_info {
|
|||
const char *buf;
|
||||
size_t count;
|
||||
struct device *dev;
|
||||
#ifdef CONFIG_OF
|
||||
struct device_node *overlay;
|
||||
#endif
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue