Skip to content

Commit

Permalink
fpga: region: move device tree support to of-fpga-region.c
Browse files Browse the repository at this point in the history
Create of-fpga-region.c and move the following functions without
modification from fpga-region.c.

* of_fpga_region_find
* of_fpga_region_get_mgr
* of_fpga_region_get_bridges
* child_regions_with_firmware
* of_fpga_region_parse_ov
* of_fpga_region_notify_pre_apply
* of_fpga_region_notify_post_remove
* of_fpga_region_notify
* of_fpga_region_probe
* of_fpga_region_remove

Create two new functions with some code from fpga_region_init/exit.

* of_fpga_region_init
* of_fpga_region_exit

Signed-off-by: Alan Tull <[email protected]>
Acked-by: Moritz Fischer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
atull-altera authored and gregkh committed Nov 28, 2017
1 parent 503d4b7 commit ef3acdd
Show file tree
Hide file tree
Showing 4 changed files with 509 additions and 455 deletions.
15 changes: 11 additions & 4 deletions drivers/fpga/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,18 @@ if FPGA

config FPGA_REGION
tristate "FPGA Region"
depends on OF && FPGA_BRIDGE
depends on FPGA_BRIDGE
help
FPGA Region common code. A FPGA Region controls a FPGA Manager
and the FPGA Bridges associated with either a reconfigurable
region of an FPGA or a whole FPGA.

config OF_FPGA_REGION
tristate "FPGA Region Device Tree Overlay Support"
depends on OF && FPGA_REGION
help
FPGA Regions allow loading FPGA images under control of
the Device Tree.
Support for loading FPGA images by applying a Device Tree
overlay.

config FPGA_MGR_ICE40_SPI
tristate "Lattice iCE40 SPI"
Expand Down Expand Up @@ -74,7 +82,6 @@ config FPGA_MGR_ZYNQ_FPGA

config FPGA_BRIDGE
tristate "FPGA Bridge Framework"
depends on OF
help
Say Y here if you want to support bridges connected between host
processors and FPGAs or between FPGAs.
Expand Down
1 change: 1 addition & 0 deletions drivers/fpga/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ obj-$(CONFIG_XILINX_PR_DECOUPLER) += xilinx-pr-decoupler.o

# High Level Interfaces
obj-$(CONFIG_FPGA_REGION) += fpga-region.o
obj-$(CONFIG_OF_FPGA_REGION) += of-fpga-region.o
Loading

0 comments on commit ef3acdd

Please sign in to comment.