fpga-region: separate out common code to allow non-dt support

FPGA region is a layer above the FPGA manager and FPGA bridge frameworks
that controls them both together.  The current implementation for FPGA
regions is dependent on device tree.  This commit separates that code into
common code and device tree specific code.  fpga-region.c remains as common
code and of-fpga-region.c is added to support device tree overlays.

Functons exported:

of_fpga_region_find
* Find a fpga region, given the node pointer

fpga_region_alloc_image_info
fpga_region_free_image_info
* Alloc/free fpga_image_info struct

fpga_region_program_fpga
* Program an FPGA region

* fpga_region_register
* fpga_region_unregister
  Create/remove a FPGA region.  Caller will supply the region
  struct initialized with a pointer to a FPGA manager and
  a method to get the FPGA bridges.

Signed-off-by: Alan Tull <atull@kernel.org>
6 files changed